Class: AWSCDK::MediaPackage::CfnAssetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_package/cfn_asset_props.rb

Overview

Properties for defining a CfnAsset.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • id (String)

    Unique identifier that you assign to the asset.

  • packaging_group_id (String)

    The ID of the packaging group associated with this asset.

  • source_arn (String)

    The ARN for the source content in Amazon S3.

  • source_role_arn (String)

    The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.

  • egress_endpoints (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MediaPackage::CfnAsset::EgressEndpointProperty>, nil) (defaults to: nil)

    List of playback endpoints that are available for this asset.

  • resource_id (String, nil) (defaults to: nil)

    Unique identifier for this asset, as it's configured in the key provider service.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags to assign to the asset.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#egress_endpointsAWSCDK::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

#idString (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_idString (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_idString? (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_arnString (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_arnString (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

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags to assign to the asset.



69
70
71
# File 'media_package/cfn_asset_props.rb', line 69

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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