Class: AWSCDK::BedrockAgentCore::AtlassianOAuth2CredentialProviderProps
- Inherits:
-
OAuth2CredentialProviderFactoryBaseProps
- Object
- OAuth2CredentialProviderFactoryBaseProps
- AWSCDK::BedrockAgentCore::AtlassianOAuth2CredentialProviderProps
- Defined in:
- bedrock_agent_core/atlassian_o_auth2_credential_provider_props.rb
Overview
Props for OAuth2CredentialProvider.usingAtlassian.
Instance Attribute Summary collapse
-
#client_id ⇒ String
readonly
OAuth2 client identifier.
-
#client_secret ⇒ AWSCDK::SecretValue
readonly
OAuth2 client secret.
-
#o_auth2_credential_provider_name ⇒ String?
readonly
Name of the credential provider.
-
#tags ⇒ Hash{String => String}?
readonly
Tags for this credential provider.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(o_auth2_credential_provider_name: nil, tags: nil, client_id:, client_secret:) ⇒ AtlassianOAuth2CredentialProviderProps
constructor
A new instance of AtlassianOAuth2CredentialProviderProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(o_auth2_credential_provider_name: nil, tags: nil, client_id:, client_secret:) ⇒ AtlassianOAuth2CredentialProviderProps
Returns a new instance of AtlassianOAuth2CredentialProviderProps.
11 12 13 14 15 16 17 18 19 20 |
# File 'bedrock_agent_core/atlassian_o_auth2_credential_provider_props.rb', line 11 def initialize(o_auth2_credential_provider_name: nil, tags: nil, client_id:, client_secret:) @o_auth2_credential_provider_name = o_auth2_credential_provider_name Jsii::Type.check_type(@o_auth2_credential_provider_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "oAuth2CredentialProviderName") unless @o_auth2_credential_provider_name.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? @client_id = client_id Jsii::Type.check_type(@client_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientId") @client_secret = client_secret Jsii::Type.check_type(@client_secret, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TZWNyZXRWYWx1ZSJ9")), "clientSecret") end |
Instance Attribute Details
#client_id ⇒ String (readonly)
OAuth2 client identifier.
35 36 37 |
# File 'bedrock_agent_core/atlassian_o_auth2_credential_provider_props.rb', line 35 def client_id @client_id end |
#client_secret ⇒ AWSCDK::SecretValue (readonly)
OAuth2 client secret.
NOTE: The client secret will be included in the CloudFormation template as part of synthesis.
The service stores the secret in Secrets Manager after creation, but the value is visible
in the template and deployment history. Use SecretValue.unsafePlainText() to explicitly
acknowledge plaintext, or pass a reference from another construct to avoid embedding the
literal value.
45 46 47 |
# File 'bedrock_agent_core/atlassian_o_auth2_credential_provider_props.rb', line 45 def client_secret @client_secret end |
#o_auth2_credential_provider_name ⇒ String? (readonly)
Default: a name generated by CDK
Name of the credential provider.
26 27 28 |
# File 'bedrock_agent_core/atlassian_o_auth2_credential_provider_props.rb', line 26 def o_auth2_credential_provider_name @o_auth2_credential_provider_name end |
#tags ⇒ Hash{String => String}? (readonly)
Default: - no tags
Tags for this credential provider.
31 32 33 |
# File 'bedrock_agent_core/atlassian_o_auth2_credential_provider_props.rb', line 31 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'bedrock_agent_core/atlassian_o_auth2_credential_provider_props.rb', line 47 def self.jsii_properties { :o_auth2_credential_provider_name => "oAuth2CredentialProviderName", :tags => "tags", :client_id => "clientId", :client_secret => "clientSecret", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 |
# File 'bedrock_agent_core/atlassian_o_auth2_credential_provider_props.rb', line 56 def to_jsii result = {} result.merge!(super) result.merge!({ "oAuth2CredentialProviderName" => @o_auth2_credential_provider_name, "tags" => @tags, "clientId" => @client_id, "clientSecret" => @client_secret, }) result.compact end |