Class: AWSCDK::BedrockAgentCore::WorkloadIdentityProps

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

Overview

Properties for a new WorkloadIdentity.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allowed_resource_oauth2_return_urls: nil, tags: nil, workload_identity_name: nil) ⇒ WorkloadIdentityProps

Returns a new instance of WorkloadIdentityProps.

Parameters:

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

    Allowed OAuth2 return URLs for resources associated with this workload identity.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    Tags for this workload identity.

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

    Name of the workload identity.



10
11
12
13
14
15
16
17
# File 'bedrock_agent_core/workload_identity_props.rb', line 10

def initialize(allowed_resource_oauth2_return_urls: nil, tags: nil, workload_identity_name: nil)
  @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
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
  @workload_identity_name = workload_identity_name
  Jsii::Type.check_type(@workload_identity_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workloadIdentityName") unless @workload_identity_name.nil?
end

Instance Attribute Details

#allowed_resource_oauth2_return_urlsArray<String>? (readonly)

Note:

Default: - no return URLs

Allowed OAuth2 return URLs for resources associated with this workload identity.

Returns:

  • (Array<String>, nil)


23
24
25
# File 'bedrock_agent_core/workload_identity_props.rb', line 23

def allowed_resource_oauth2_return_urls
  @allowed_resource_oauth2_return_urls
end

#tagsHash{String => String}? (readonly)

Note:

Default: - no tags

Tags for this workload identity.

Returns:

  • (Hash{String => String}, nil)


28
29
30
# File 'bedrock_agent_core/workload_identity_props.rb', line 28

def tags
  @tags
end

#workload_identity_nameString? (readonly)

Note:

Default: - a name generated by CDK

Name of the workload identity.

Returns:

  • (String, nil)


33
34
35
# File 'bedrock_agent_core/workload_identity_props.rb', line 33

def workload_identity_name
  @workload_identity_name
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
41
# File 'bedrock_agent_core/workload_identity_props.rb', line 35

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

Instance Method Details

#to_jsiiObject



43
44
45
46
47
48
49
50
51
# File 'bedrock_agent_core/workload_identity_props.rb', line 43

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