Class: AWSCDK::BedrockAgentCore::CfnWorkloadIdentityProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_workload_identity_props.rb

Overview

Properties for defining a CfnWorkloadIdentity.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, allowed_resource_oauth2_return_urls: nil, tags: nil) ⇒ CfnWorkloadIdentityProps

Returns a new instance of CfnWorkloadIdentityProps.

Parameters:

  • name (String)

    The name of the workload identity.

  • allowed_resource_oauth2_return_urls (Array<String>, nil) (defaults to: nil)

    The list of allowed OAuth2 return URLs for resources associated with this workload identity.

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

    The tags for the workload identity.



12
13
14
15
16
17
18
19
# File 'bedrock_agent_core/cfn_workload_identity_props.rb', line 12

def initialize(name:, allowed_resource_oauth2_return_urls: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @allowed_resource_oauth2_return_urls = allowed_resource_oauth2_return_urls
  Jsii::Type.check_type(@allowed_resource_oauth2_return_urls, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedResourceOauth2ReturnUrls") unless @allowed_resource_oauth2_return_urls.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

#allowed_resource_oauth2_return_urlsArray<String>? (readonly)

The list of allowed OAuth2 return URLs for resources associated with this workload identity.



32
33
34
# File 'bedrock_agent_core/cfn_workload_identity_props.rb', line 32

def allowed_resource_oauth2_return_urls
  @allowed_resource_oauth2_return_urls
end

#nameString (readonly)

The name of the workload identity.

The name must be unique within your account.



27
28
29
# File 'bedrock_agent_core/cfn_workload_identity_props.rb', line 27

def name
  @name
end

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

The tags for the workload identity.



37
38
39
# File 'bedrock_agent_core/cfn_workload_identity_props.rb', line 37

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'bedrock_agent_core/cfn_workload_identity_props.rb', line 39

def self.jsii_properties
  {
    :name => "name",
    :allowed_resource_oauth2_return_urls => "allowedResourceOauth2ReturnUrls",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'bedrock_agent_core/cfn_workload_identity_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "allowedResourceOauth2ReturnUrls" => @allowed_resource_oauth2_return_urls,
    "tags" => @tags,
  })
  result.compact
end