Class: Aws::CloudFront::Types::TrustedSigners
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::TrustedSigners
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
Overview
When making an API call, you may pass TrustedSigners data as a hash:
{
enabled: false, # required
quantity: 1, # required
items: ["string"],
}
A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.
If you want to require signed URLs in requests for objects in the target origin that match the ‘PathPattern` for this cache behavior, specify `true` for `Enabled`, and specify the applicable values for `Quantity` and `Items`. For more information, see [Serving Private Content through CloudFront] in the Amazon CloudFront Developer Guide.
If you don’t want to require signed URLs in requests for objects that match ‘PathPattern`, specify `false` for `Enabled` and `0` for `Quantity`. Omit `Items`.
To add, change, or remove one or more trusted signers, change ‘Enabled` to `true` (if it’s currently ‘false`), change `Quantity` as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
For more information about updating the distribution configuration, see [DistributionConfig] in the *Amazon CloudFront API Reference*.
[1]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html [2]: docs.aws.amazon.com/cloudfront/latest/APIReference/DistributionConfig.html
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
Specifies whether you want to require viewers to use signed URLs to access the files specified by ‘PathPattern` and `TargetOriginId`.
-
#items ⇒ Array<String>
Optional: A complex type that contains trusted signers for this cache behavior.
-
#quantity ⇒ Integer
The number of trusted signers for this cache behavior.
Instance Attribute Details
#enabled ⇒ Boolean
Specifies whether you want to require viewers to use signed URLs to access the files specified by ‘PathPattern` and `TargetOriginId`.
8040 8041 8042 8043 8044 8045 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 8040 class TrustedSigners < Struct.new( :enabled, :quantity, :items) include Aws::Structure end |
#items ⇒ Array<String>
Optional: A complex type that contains trusted signers for this cache behavior. If ‘Quantity` is `0`, you can omit `Items`.
8040 8041 8042 8043 8044 8045 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 8040 class TrustedSigners < Struct.new( :enabled, :quantity, :items) include Aws::Structure end |
#quantity ⇒ Integer
The number of trusted signers for this cache behavior.
8040 8041 8042 8043 8044 8045 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 8040 class TrustedSigners < Struct.new( :enabled, :quantity, :items) include Aws::Structure end |