Class: AWSCDK::BedrockAgentCore::WorkloadIdentityProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::WorkloadIdentityProps
- Defined in:
- bedrock_agent_core/workload_identity_props.rb
Overview
Properties for a new WorkloadIdentity.
Instance Attribute Summary collapse
-
#allowed_resource_oauth2_return_urls ⇒ Array<String>?
readonly
Allowed OAuth2 return URLs for resources associated with this workload identity.
-
#tags ⇒ Hash{String => String}?
readonly
Tags for this workload identity.
-
#workload_identity_name ⇒ String?
readonly
Name of the workload identity.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_resource_oauth2_return_urls: nil, tags: nil, workload_identity_name: nil) ⇒ WorkloadIdentityProps
constructor
A new instance of WorkloadIdentityProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_resource_oauth2_return_urls: nil, tags: nil, workload_identity_name: nil) ⇒ WorkloadIdentityProps
Returns a new instance of WorkloadIdentityProps.
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 = 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_urls ⇒ Array<String>? (readonly)
Note:
Default: - no return URLs
Allowed OAuth2 return URLs for resources associated with this workload identity.
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 |
#tags ⇒ Hash{String => String}? (readonly)
Note:
Default: - no tags
Tags for this workload identity.
28 29 30 |
# File 'bedrock_agent_core/workload_identity_props.rb', line 28 def @tags end |
#workload_identity_name ⇒ String? (readonly)
Note:
Default: - a name generated by CDK
Name of the workload identity.
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_properties ⇒ Object
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_jsii ⇒ Object
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 |