Class: AWSCDK::ACMPCA::CfnPermissionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
acmpca/cfn_permission_props.rb

Overview

Properties for defining a CfnPermission.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actions:, certificate_authority_arn:, principal:, source_account: nil) ⇒ CfnPermissionProps

Returns a new instance of CfnPermissionProps.

Parameters:

  • actions (Array<String>)

    The private CA actions that can be performed by the designated AWS service.

  • certificate_authority_arn (String, AWSCDK::Interfaces::AWSAcmpca::ICertificateAuthorityRef)

    The Amazon Resource Number (ARN) of the private CA from which the permission was issued.

  • principal (String)

    The AWS service or entity that holds the permission.

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

    The ID of the account that assigned the permission.



13
14
15
16
17
18
19
20
21
22
# File 'acmpca/cfn_permission_props.rb', line 13

def initialize(actions:, certificate_authority_arn:, principal:, source_account: nil)
  @actions = actions
  Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "actions")
  @certificate_authority_arn = certificate_authority_arn
  Jsii::Type.check_type(@certificate_authority_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hY21wY2EuSUNlcnRpZmljYXRlQXV0aG9yaXR5UmVmIn1dfX0=")), "certificateAuthorityArn")
  @principal = principal
  Jsii::Type.check_type(@principal, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principal")
  @source_account = 
  Jsii::Type.check_type(@source_account, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceAccount") unless @source_account.nil?
end

Instance Attribute Details

#actionsArray<String> (readonly)

The private CA actions that can be performed by the designated AWS service.

Supported actions are IssueCertificate , GetCertificate , and ListPermissions .



30
31
32
# File 'acmpca/cfn_permission_props.rb', line 30

def actions
  @actions
end

#certificate_authority_arnString, AWSCDK::Interfaces::AWSAcmpca::ICertificateAuthorityRef (readonly)

The Amazon Resource Number (ARN) of the private CA from which the permission was issued.



35
36
37
# File 'acmpca/cfn_permission_props.rb', line 35

def certificate_authority_arn
  @certificate_authority_arn
end

#principalString (readonly)

The AWS service or entity that holds the permission.

At this time, the only valid principal is acm.amazonaws.com .



42
43
44
# File 'acmpca/cfn_permission_props.rb', line 42

def principal
  @principal
end

#source_accountString? (readonly)

The ID of the account that assigned the permission.



47
48
49
# File 'acmpca/cfn_permission_props.rb', line 47

def 
  @source_account
end

Class Method Details

.jsii_propertiesObject



49
50
51
52
53
54
55
56
# File 'acmpca/cfn_permission_props.rb', line 49

def self.jsii_properties
  {
    :actions => "actions",
    :certificate_authority_arn => "certificateAuthorityArn",
    :principal => "principal",
    :source_account => "sourceAccount",
  }
end

Instance Method Details

#to_jsiiObject



58
59
60
61
62
63
64
65
66
67
# File 'acmpca/cfn_permission_props.rb', line 58

def to_jsii
  result = {}
  result.merge!({
    "actions" => @actions,
    "certificateAuthorityArn" => @certificate_authority_arn,
    "principal" => @principal,
    "sourceAccount" => @source_account,
  })
  result.compact
end