Class: AWSCDK::MediaPackage::CfnAssetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackage::CfnAssetProps
- Defined in:
- media_package/cfn_asset_props.rb
Overview
Properties for defining a CfnAsset.
Instance Attribute Summary collapse
-
#egress_endpoints ⇒ AWSCDK::IResolvable, ...
readonly
List of playback endpoints that are available for this asset.
-
#id ⇒ String
readonly
Unique identifier that you assign to the asset.
-
#packaging_group_id ⇒ String
readonly
The ID of the packaging group associated with this asset.
-
#resource_id ⇒ String?
readonly
Unique identifier for this asset, as it's configured in the key provider service.
-
#source_arn ⇒ String
readonly
The ARN for the source content in Amazon S3.
-
#source_role_arn ⇒ String
readonly
The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags to assign to the asset.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, packaging_group_id:, source_arn:, source_role_arn:, egress_endpoints: nil, resource_id: nil, tags: nil) ⇒ CfnAssetProps
constructor
A new instance of CfnAssetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, packaging_group_id:, source_arn:, source_role_arn:, egress_endpoints: nil, resource_id: nil, tags: nil) ⇒ CfnAssetProps
Returns a new instance of CfnAssetProps.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'media_package/cfn_asset_props.rb', line 16 def initialize(id:, packaging_group_id:, source_arn:, source_role_arn:, egress_endpoints: nil, resource_id: nil, tags: nil) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") @packaging_group_id = packaging_group_id Jsii::Type.check_type(@packaging_group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "packagingGroupId") @source_arn = source_arn Jsii::Type.check_type(@source_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceArn") @source_role_arn = source_role_arn Jsii::Type.check_type(@source_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceRoleArn") @egress_endpoints = egress_endpoints Jsii::Type.check_type(@egress_endpoints, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFwYWNrYWdlLkNmbkFzc2V0LkVncmVzc0VuZHBvaW50UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "egressEndpoints") unless @egress_endpoints.nil? @resource_id = resource_id Jsii::Type.check_type(@resource_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceId") unless @resource_id.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#egress_endpoints ⇒ AWSCDK::IResolvable, ... (readonly)
List of playback endpoints that are available for this asset.
59 60 61 |
# File 'media_package/cfn_asset_props.rb', line 59 def egress_endpoints @egress_endpoints end |
#id ⇒ String (readonly)
Unique identifier that you assign to the asset.
37 38 39 |
# File 'media_package/cfn_asset_props.rb', line 37 def id @id end |
#packaging_group_id ⇒ String (readonly)
The ID of the packaging group associated with this asset.
42 43 44 |
# File 'media_package/cfn_asset_props.rb', line 42 def packaging_group_id @packaging_group_id end |
#resource_id ⇒ String? (readonly)
Unique identifier for this asset, as it's configured in the key provider service.
64 65 66 |
# File 'media_package/cfn_asset_props.rb', line 64 def resource_id @resource_id end |
#source_arn ⇒ String (readonly)
The ARN for the source content in Amazon S3.
47 48 49 |
# File 'media_package/cfn_asset_props.rb', line 47 def source_arn @source_arn end |
#source_role_arn ⇒ String (readonly)
The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.
Valid format: arn:aws:iam::accountID:role/name
54 55 56 |
# File 'media_package/cfn_asset_props.rb', line 54 def source_role_arn @source_role_arn end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags to assign to the asset.
69 70 71 |
# File 'media_package/cfn_asset_props.rb', line 69 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 |
# File 'media_package/cfn_asset_props.rb', line 71 def self.jsii_properties { :id => "id", :packaging_group_id => "packagingGroupId", :source_arn => "sourceArn", :source_role_arn => "sourceRoleArn", :egress_endpoints => "egressEndpoints", :resource_id => "resourceId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'media_package/cfn_asset_props.rb', line 83 def to_jsii result = {} result.merge!({ "id" => @id, "packagingGroupId" => @packaging_group_id, "sourceArn" => @source_arn, "sourceRoleArn" => @source_role_arn, "egressEndpoints" => @egress_endpoints, "resourceId" => @resource_id, "tags" => @tags, }) result.compact end |