Class: AWSCDK::EC2::CfnEnclaveCertificateIAMRoleAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_enclave_certificate_iam_role_association_props.rb

Overview

Properties for defining a CfnEnclaveCertificateIamRoleAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_arn:, role_arn:) ⇒ CfnEnclaveCertificateIAMRoleAssociationProps

Returns a new instance of CfnEnclaveCertificateIAMRoleAssociationProps.

Parameters:

  • certificate_arn (String)

    The ARN of the ACM certificate with which to associate the IAM role.

  • role_arn (String)

    The ARN of the IAM role to associate with the ACM certificate.



11
12
13
14
15
16
# File 'ec2/cfn_enclave_certificate_iam_role_association_props.rb', line 11

def initialize(certificate_arn:, role_arn:)
  @certificate_arn = certificate_arn
  Jsii::Type.check_type(@certificate_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateArn")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
end

Instance Attribute Details

#certificate_arnString (readonly)

The ARN of the ACM certificate with which to associate the IAM role.



22
23
24
# File 'ec2/cfn_enclave_certificate_iam_role_association_props.rb', line 22

def certificate_arn
  @certificate_arn
end

#role_arnString (readonly)

The ARN of the IAM role to associate with the ACM certificate.

You can associate up to 16 IAM roles with an ACM certificate.



29
30
31
# File 'ec2/cfn_enclave_certificate_iam_role_association_props.rb', line 29

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'ec2/cfn_enclave_certificate_iam_role_association_props.rb', line 31

def self.jsii_properties
  {
    :certificate_arn => "certificateArn",
    :role_arn => "roleArn",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'ec2/cfn_enclave_certificate_iam_role_association_props.rb', line 38

def to_jsii
  result = {}
  result.merge!({
    "certificateArn" => @certificate_arn,
    "roleArn" => @role_arn,
  })
  result.compact
end