Class: AWSCDK::MediaTailor::CfnSourceLocation::AccessConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaTailor::CfnSourceLocation::AccessConfigurationProperty
- Defined in:
- media_tailor/cfn_source_location.rb
Overview
Access configuration parameters.
Instance Attribute Summary collapse
-
#access_type ⇒ String?
readonly
The type of authentication used to access content from
HttpConfiguration::BaseUrlon your source location. -
#secrets_manager_access_token_configuration ⇒ AWSCDK::IResolvable, ...
readonly
AWS Secrets Manager access token configuration parameters.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_type: nil, secrets_manager_access_token_configuration: nil) ⇒ AccessConfigurationProperty
constructor
A new instance of AccessConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_type: nil, secrets_manager_access_token_configuration: nil) ⇒ AccessConfigurationProperty
Returns a new instance of AccessConfigurationProperty.
588 589 590 591 592 593 |
# File 'media_tailor/cfn_source_location.rb', line 588 def initialize(access_type: nil, secrets_manager_access_token_configuration: nil) @access_type = access_type Jsii::Type.check_type(@access_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessType") unless @access_type.nil? @secrets_manager_access_token_configuration = secrets_manager_access_token_configuration.is_a?(Hash) ? ::AWSCDK::MediaTailor::CfnSourceLocation::SecretsManagerAccessTokenConfigurationProperty.new(**secrets_manager_access_token_configuration.transform_keys(&:to_sym)) : secrets_manager_access_token_configuration Jsii::Type.check_type(@secrets_manager_access_token_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXRhaWxvci5DZm5Tb3VyY2VMb2NhdGlvbi5TZWNyZXRzTWFuYWdlckFjY2Vzc1Rva2VuQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "secretsManagerAccessTokenConfiguration") unless @secrets_manager_access_token_configuration.nil? end |
Instance Attribute Details
#access_type ⇒ String? (readonly)
The type of authentication used to access content from HttpConfiguration::BaseUrl on your source location. Accepted value: S3_SIGV4 .
S3_SIGV4 - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name.
Before you can use S3_SIGV4 , you must meet these requirements:
• You must allow MediaTailor to access your S3 bucket by granting mediatailor.amazonaws.com principal access in IAM. For information about configuring access in IAM, see Access management in the IAM User Guide.
• The mediatailor.amazonaws.com service principal must have permissions to read all top level manifests referenced by the VodSource packaging configurations.
• The caller of the API must have s3:GetObject IAM permissions to read all top level manifests referenced by your MediaTailor VodSource packaging configurations.
609 610 611 |
# File 'media_tailor/cfn_source_location.rb', line 609 def access_type @access_type end |
#secrets_manager_access_token_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
AWS Secrets Manager access token configuration parameters.
614 615 616 |
# File 'media_tailor/cfn_source_location.rb', line 614 def secrets_manager_access_token_configuration @secrets_manager_access_token_configuration end |
Class Method Details
.jsii_properties ⇒ Object
616 617 618 619 620 621 |
# File 'media_tailor/cfn_source_location.rb', line 616 def self.jsii_properties { :access_type => "accessType", :secrets_manager_access_token_configuration => "secretsManagerAccessTokenConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
623 624 625 626 627 628 629 630 |
# File 'media_tailor/cfn_source_location.rb', line 623 def to_jsii result = {} result.merge!({ "accessType" => @access_type, "secretsManagerAccessTokenConfiguration" => @secrets_manager_access_token_configuration, }) result.compact end |