Class: AWSCDK::BedrockAgentCore::CfnWorkloadIdentityProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnWorkloadIdentityProps
- Defined in:
- bedrock_agent_core/cfn_workload_identity_props.rb
Overview
Properties for defining a CfnWorkloadIdentity.
Instance Attribute Summary collapse
-
#allowed_resource_oauth2_return_urls ⇒ Array<String>?
readonly
The list of allowed OAuth2 return URLs for resources associated with this workload identity.
-
#name ⇒ String
readonly
The name of the workload identity.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags for the workload identity.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, allowed_resource_oauth2_return_urls: nil, tags: nil) ⇒ CfnWorkloadIdentityProps
constructor
A new instance of CfnWorkloadIdentityProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, allowed_resource_oauth2_return_urls: nil, tags: nil) ⇒ CfnWorkloadIdentityProps
Returns a new instance of CfnWorkloadIdentityProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#allowed_resource_oauth2_return_urls ⇒ Array<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 |
#name ⇒ String (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |