Class: AWSCDK::IoT::CfnCertificateProviderProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_certificate_provider_props.rb

Overview

Properties for defining a CfnCertificateProvider.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_default_for_operations:, lambda_function_arn:, certificate_provider_name: nil, tags: nil) ⇒ CfnCertificateProviderProps

Returns a new instance of CfnCertificateProviderProps.

Parameters:

  • account_default_for_operations (Array<String>)

    A list of the operations that the certificate provider will use to generate certificates.

  • lambda_function_arn (String)

    The ARN of the Lambda function.

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

    The name of the certificate provider.

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

    Metadata that can be used to manage the certificate provider.



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

def initialize(account_default_for_operations:, lambda_function_arn:, certificate_provider_name: nil, tags: nil)
  @account_default_for_operations = 
  Jsii::Type.check_type(@account_default_for_operations, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "accountDefaultForOperations")
  @lambda_function_arn = lambda_function_arn
  Jsii::Type.check_type(@lambda_function_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lambdaFunctionArn")
  @certificate_provider_name = certificate_provider_name
  Jsii::Type.check_type(@certificate_provider_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateProviderName") unless @certificate_provider_name.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

#account_default_for_operationsArray<String> (readonly)

A list of the operations that the certificate provider will use to generate certificates.

Valid value: CreateCertificateFromCsr .



30
31
32
# File 'io_t/cfn_certificate_provider_props.rb', line 30

def 
  @account_default_for_operations
end

#certificate_provider_nameString? (readonly)

The name of the certificate provider.



40
41
42
# File 'io_t/cfn_certificate_provider_props.rb', line 40

def certificate_provider_name
  @certificate_provider_name
end

#lambda_function_arnString (readonly)

The ARN of the Lambda function.



35
36
37
# File 'io_t/cfn_certificate_provider_props.rb', line 35

def lambda_function_arn
  @lambda_function_arn
end

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

Metadata that can be used to manage the certificate provider.



45
46
47
# File 'io_t/cfn_certificate_provider_props.rb', line 45

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'io_t/cfn_certificate_provider_props.rb', line 47

def self.jsii_properties
  {
    :account_default_for_operations => "accountDefaultForOperations",
    :lambda_function_arn => "lambdaFunctionArn",
    :certificate_provider_name => "certificateProviderName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'io_t/cfn_certificate_provider_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "accountDefaultForOperations" => @account_default_for_operations,
    "lambdaFunctionArn" => @lambda_function_arn,
    "certificateProviderName" => @certificate_provider_name,
    "tags" => @tags,
  })
  result.compact
end