Class: AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
- Inherits:
-
Resource
- Object
- Resource
- AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
- Includes:
- IOAuth2CredentialProvider
- Defined in:
- bedrock_agent_core/o_auth2_credential_provider.rb
Overview
L2 construct for AWS::BedrockAgentCore::OAuth2CredentialProvider.
Prefer the static factories (for example OAuth2CredentialProvider.usingSlack) so you only pass the OAuth2 settings that apply to that vendor. To attach the identity to a gateway target, use {@link GatewayCredentialProvider.fromOauthIdentity } with this construct, or OAuth2CredentialProvider.bindForGatewayOAuthTarget with {@link GatewayCredentialProvider.fromOauthIdentityArn }.
Class Method Summary collapse
-
.from_o_auth2_credential_provider_attributes(scope, id, attrs) ⇒ AWSCDK::BedrockAgentCore::IOAuth2CredentialProvider
Import an existing OAuth2 credential provider.
- .jsii_overridable_methods ⇒ Object
-
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
-
.using_atlassian(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Atlassian OAuth2.
-
.using_auth0(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Auth0 OAuth2 (
IncludedOauth2ProviderConfig). -
.using_cognito(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Amazon Cognito OAuth2 (
IncludedOauth2ProviderConfig). -
.using_custom(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for a custom OAuth2 authorization server (discovery document or metadata).
-
.using_cyber_ark(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for CyberArk OAuth2 (
IncludedOauth2ProviderConfig). -
.using_dropbox(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Dropbox OAuth2 (
IncludedOauth2ProviderConfig). -
.using_facebook(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Facebook OAuth2 (
IncludedOauth2ProviderConfig). -
.using_fusion_auth(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for FusionAuth OAuth2 (
IncludedOauth2ProviderConfig). -
.using_github(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for GitHub OAuth2.
-
.using_google(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Google OAuth2.
-
.using_hubspot(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for HubSpot OAuth2 (
IncludedOauth2ProviderConfig). -
.using_linkedin(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for LinkedIn OAuth2.
-
.using_microsoft(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Microsoft (Entra ID) OAuth2.
-
.using_notion(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Notion OAuth2 (
IncludedOauth2ProviderConfig). -
.using_okta(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Okta OAuth2 (
IncludedOauth2ProviderConfig). -
.using_one_login(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for OneLogin OAuth2 (
IncludedOauth2ProviderConfig). -
.using_ping_one(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for PingOne OAuth2 (
IncludedOauth2ProviderConfig). -
.using_reddit(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Reddit OAuth2 (
IncludedOauth2ProviderConfig). -
.using_salesforce(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Salesforce OAuth2.
-
.using_slack(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Slack OAuth2.
-
.using_spotify(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Spotify OAuth2 (
IncludedOauth2ProviderConfig). -
.using_twitch(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Twitch OAuth2 (
IncludedOauth2ProviderConfig). -
.using_x(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for X (Twitter) OAuth2 (
IncludedOauth2ProviderConfig). -
.using_yandex(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Yandex OAuth2 (
IncludedOauth2ProviderConfig). -
.using_zoom(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Zoom OAuth2 (
IncludedOauth2ProviderConfig).
Instance Method Summary collapse
-
#apply_cross_stack_reference_strength(strength) ⇒ void
Override the cross-stack reference strength for this resource.
-
#apply_removal_policy(policy) ⇒ void
Apply the given removal policy to this resource.
-
#bind_for_gateway_o_auth_target(scopes, custom_parameters = nil) ⇒ AWSCDK::BedrockAgentCore::GatewayOAuth2IdentityBinding
ARNs and OAuth scopes for {@link GatewayCredentialProvider.fromOauthIdentity } / {@link GatewayCredentialProvider.fromOauthIdentityArn }.
-
#callback_url ⇒ String?
Callback URL for the OAuth2 authorization flow.
-
#client_secret_arn ⇒ String?
The ARN of the Secrets Manager secret for the OAuth2 client credentials.
-
#created_time ⇒ String?
Timestamp when the credential provider was created.
-
#credential_provider_arn ⇒ String
The ARN of this credential provider.
-
#credential_provider_vendor ⇒ String
OAuth2 vendor string passed to CloudFormation.
-
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
- #generate_physical_name ⇒ String
-
#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g.
bucket.bucketArn). -
#get_resource_name_attribute(name_attr) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g.
bucket.bucketName). -
#grant(grantee, *actions) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
-
#grant_admin(grantee) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
-
#grant_full_access(grantee) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
-
#grant_principal ⇒ AWSCDK::IAM::IPrincipal
The principal to grant permissions to.
-
#grant_read(grantee) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
-
#grant_use(grantee) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
-
#initialize(scope, id, props) ⇒ OAuth2CredentialProvider
constructor
A new instance of OAuth2CredentialProvider.
-
#last_updated_time ⇒ String?
Timestamp when the credential provider was last updated.
-
#node ⇒ Constructs::Node
The tree node.
-
#o_auth2_credential_provider_name ⇒ String
The name of this OAuth2 credential provider.
-
#o_auth2_credential_provider_ref ⇒ AWSCDK::Interfaces::AWSBedrockagentcore::OAuth2CredentialProviderReference
A reference to a OAuth2CredentialProvider resource.
-
#physical_name ⇒ String
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
-
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props) ⇒ OAuth2CredentialProvider
Returns a new instance of OAuth2CredentialProvider.
19 20 21 22 23 24 25 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 19 def initialize(scope, id, props) props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::OAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5PQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.from_o_auth2_credential_provider_attributes(scope, id, attrs) ⇒ AWSCDK::BedrockAgentCore::IOAuth2CredentialProvider
Import an existing OAuth2 credential provider.
64 65 66 67 68 69 70 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 64 def self.from_o_auth2_credential_provider_attributes(scope, id, attrs) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") attrs = attrs.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::OAuth2CredentialProviderAttributes.new(**attrs.transform_keys(&:to_sym)) : attrs Jsii::Type.check_type(attrs, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5PQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJBdHRyaWJ1dGVzIn0=")), "attrs") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "fromOAuth2CredentialProviderAttributes", [scope, id, attrs]) end |
.jsii_overridable_methods ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 27 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :env => { kind: :property, name: "env", is_optional: false }, :physical_name => { kind: :property, name: "physicalName", is_optional: false }, :stack => { kind: :property, name: "stack", is_optional: false }, :credential_provider_arn => { kind: :property, name: "credentialProviderArn", is_optional: false }, :credential_provider_vendor => { kind: :property, name: "credentialProviderVendor", is_optional: false }, :grant_principal => { kind: :property, name: "grantPrincipal", is_optional: false }, :o_auth2_credential_provider_name => { kind: :property, name: "oAuth2CredentialProviderName", is_optional: false }, :o_auth2_credential_provider_ref => { kind: :property, name: "oAuth2CredentialProviderRef", is_optional: false }, :callback_url => { kind: :property, name: "callbackUrl", is_optional: true }, :client_secret_arn => { kind: :property, name: "clientSecretArn", is_optional: true }, :created_time => { kind: :property, name: "createdTime", is_optional: true }, :last_updated_time => { kind: :property, name: "lastUpdatedTime", is_optional: true }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, :apply_cross_stack_reference_strength => { kind: :method, name: "applyCrossStackReferenceStrength", is_optional: false }, :apply_removal_policy => { kind: :method, name: "applyRemovalPolicy", is_optional: false }, :generate_physical_name => { kind: :method, name: "generatePhysicalName", is_optional: false }, :get_resource_arn_attribute => { kind: :method, name: "getResourceArnAttribute", is_optional: false }, :get_resource_name_attribute => { kind: :method, name: "getResourceNameAttribute", is_optional: false }, :bind_for_gateway_o_auth_target => { kind: :method, name: "bindForGatewayOAuthTarget", is_optional: false }, :grant => { kind: :method, name: "grant", is_optional: false }, :grant_admin => { kind: :method, name: "grantAdmin", is_optional: false }, :grant_full_access => { kind: :method, name: "grantFullAccess", is_optional: false }, :grant_read => { kind: :method, name: "grantRead", is_optional: false }, :grant_use => { kind: :method, name: "grantUse", is_optional: false }, } end |
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
485 486 487 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 485 def self.PROPERTY_INJECTION_ID() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "PROPERTY_INJECTION_ID") end |
.using_atlassian(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Atlassian OAuth2.
78 79 80 81 82 83 84 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 78 def self.using_atlassian(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::AtlassianOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5BdGxhc3NpYW5PQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingAtlassian", [scope, id, props]) end |
.using_auth0(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Auth0 OAuth2 (IncludedOauth2ProviderConfig).
93 94 95 96 97 98 99 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 93 def self.using_auth0(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::IncludedOauth2TenantCredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JbmNsdWRlZE9hdXRoMlRlbmFudENyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingAuth0", [scope, id, props]) end |
.using_cognito(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Amazon Cognito OAuth2 (IncludedOauth2ProviderConfig).
108 109 110 111 112 113 114 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 108 def self.using_cognito(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::IncludedOauth2TenantCredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JbmNsdWRlZE9hdXRoMlRlbmFudENyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingCognito", [scope, id, props]) end |
.using_custom(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for a custom OAuth2 authorization server (discovery document or metadata).
122 123 124 125 126 127 128 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 122 def self.using_custom(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CustomOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DdXN0b21PQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingCustom", [scope, id, props]) end |
.using_cyber_ark(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for CyberArk OAuth2 (IncludedOauth2ProviderConfig).
137 138 139 140 141 142 143 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 137 def self.using_cyber_ark(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::IncludedOauth2TenantCredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JbmNsdWRlZE9hdXRoMlRlbmFudENyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingCyberArk", [scope, id, props]) end |
.using_dropbox(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Dropbox OAuth2 (IncludedOauth2ProviderConfig).
152 153 154 155 156 157 158 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 152 def self.using_dropbox(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::DropboxOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5Ecm9wYm94T0F1dGgyQ3JlZGVudGlhbFByb3ZpZGVyUHJvcHMifQ==")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingDropbox", [scope, id, props]) end |
.using_facebook(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Facebook OAuth2 (IncludedOauth2ProviderConfig).
167 168 169 170 171 172 173 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 167 def self.using_facebook(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::FacebookOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5GYWNlYm9va09BdXRoMkNyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingFacebook", [scope, id, props]) end |
.using_fusion_auth(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for FusionAuth OAuth2 (IncludedOauth2ProviderConfig).
182 183 184 185 186 187 188 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 182 def self.using_fusion_auth(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::IncludedOauth2TenantCredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JbmNsdWRlZE9hdXRoMlRlbmFudENyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingFusionAuth", [scope, id, props]) end |
.using_github(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for GitHub OAuth2.
196 197 198 199 200 201 202 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 196 def self.using_github(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::GithubOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5HaXRodWJPQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingGithub", [scope, id, props]) end |
.using_google(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Google OAuth2.
210 211 212 213 214 215 216 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 210 def self.using_google(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::GoogleOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5Hb29nbGVPQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingGoogle", [scope, id, props]) end |
.using_hubspot(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for HubSpot OAuth2 (IncludedOauth2ProviderConfig).
225 226 227 228 229 230 231 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 225 def self.using_hubspot(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::HubspotOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5IdWJzcG90T0F1dGgyQ3JlZGVudGlhbFByb3ZpZGVyUHJvcHMifQ==")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingHubspot", [scope, id, props]) end |
.using_linkedin(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for LinkedIn OAuth2.
239 240 241 242 243 244 245 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 239 def self.using_linkedin(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::LinkedinOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5MaW5rZWRpbk9BdXRoMkNyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingLinkedin", [scope, id, props]) end |
.using_microsoft(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Microsoft (Entra ID) OAuth2.
253 254 255 256 257 258 259 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 253 def self.using_microsoft(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::MicrosoftOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5NaWNyb3NvZnRPQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingMicrosoft", [scope, id, props]) end |
.using_notion(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Notion OAuth2 (IncludedOauth2ProviderConfig).
268 269 270 271 272 273 274 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 268 def self.using_notion(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::NotionOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5Ob3Rpb25PQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingNotion", [scope, id, props]) end |
.using_okta(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Okta OAuth2 (IncludedOauth2ProviderConfig).
283 284 285 286 287 288 289 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 283 def self.using_okta(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::IncludedOauth2TenantCredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JbmNsdWRlZE9hdXRoMlRlbmFudENyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingOkta", [scope, id, props]) end |
.using_one_login(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for OneLogin OAuth2 (IncludedOauth2ProviderConfig).
298 299 300 301 302 303 304 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 298 def self.using_one_login(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::IncludedOauth2TenantCredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JbmNsdWRlZE9hdXRoMlRlbmFudENyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingOneLogin", [scope, id, props]) end |
.using_ping_one(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for PingOne OAuth2 (IncludedOauth2ProviderConfig).
313 314 315 316 317 318 319 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 313 def self.using_ping_one(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::IncludedOauth2TenantCredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JbmNsdWRlZE9hdXRoMlRlbmFudENyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingPingOne", [scope, id, props]) end |
.using_reddit(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Reddit OAuth2 (IncludedOauth2ProviderConfig).
328 329 330 331 332 333 334 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 328 def self.using_reddit(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::RedditOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5SZWRkaXRPQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingReddit", [scope, id, props]) end |
.using_salesforce(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Salesforce OAuth2.
342 343 344 345 346 347 348 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 342 def self.using_salesforce(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::SalesforceOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5TYWxlc2ZvcmNlT0F1dGgyQ3JlZGVudGlhbFByb3ZpZGVyUHJvcHMifQ==")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingSalesforce", [scope, id, props]) end |
.using_slack(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Slack OAuth2.
356 357 358 359 360 361 362 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 356 def self.using_slack(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::SlackOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5TbGFja09BdXRoMkNyZWRlbnRpYWxQcm92aWRlclByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingSlack", [scope, id, props]) end |
.using_spotify(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Spotify OAuth2 (IncludedOauth2ProviderConfig).
371 372 373 374 375 376 377 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 371 def self.using_spotify(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::SpotifyOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5TcG90aWZ5T0F1dGgyQ3JlZGVudGlhbFByb3ZpZGVyUHJvcHMifQ==")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingSpotify", [scope, id, props]) end |
.using_twitch(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Twitch OAuth2 (IncludedOauth2ProviderConfig).
386 387 388 389 390 391 392 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 386 def self.using_twitch(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::TwitchOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5Ud2l0Y2hPQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingTwitch", [scope, id, props]) end |
.using_x(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for X (Twitter) OAuth2 (IncludedOauth2ProviderConfig).
401 402 403 404 405 406 407 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 401 def self.using_x(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::XOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5YT0F1dGgyQ3JlZGVudGlhbFByb3ZpZGVyUHJvcHMifQ==")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingX", [scope, id, props]) end |
.using_yandex(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Yandex OAuth2 (IncludedOauth2ProviderConfig).
416 417 418 419 420 421 422 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 416 def self.using_yandex(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::YandexOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5ZYW5kZXhPQXV0aDJDcmVkZW50aWFsUHJvdmlkZXJQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingYandex", [scope, id, props]) end |
.using_zoom(scope, id, props) ⇒ AWSCDK::BedrockAgentCore::OAuth2CredentialProvider
Create a credential provider for Zoom OAuth2 (IncludedOauth2ProviderConfig).
431 432 433 434 435 436 437 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 431 def self.using_zoom(scope, id, props) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::ZoomOAuth2CredentialProviderProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5ab29tT0F1dGgyQ3JlZGVudGlhbFByb3ZpZGVyUHJvcHMifQ==")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.OAuth2CredentialProvider", "usingZoom", [scope, id, props]) end |
Instance Method Details
#apply_cross_stack_reference_strength(strength) ⇒ void
This method returns an undefined value.
Override the cross-stack reference strength for this resource.
When set, any cross-stack reference to this resource will use the specified
mechanism instead of the global default determined by the
@aws-cdk/core:defaultCrossStackReferences context key. This is useful for
selectively weakening specific references to avoid the "deadly embrace" problem
without changing the app-wide default.
587 588 589 590 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 587 def apply_cross_stack_reference_strength(strength) Jsii::Type.check_type(strength, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZWZlcmVuY2VTdHJlbmd0aCJ9")), "strength") jsii_call_method("applyCrossStackReferenceStrength", [strength]) end |
#apply_removal_policy(policy) ⇒ void
This method returns an undefined value.
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
604 605 606 607 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 604 def apply_removal_policy(policy) Jsii::Type.check_type(policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "policy") jsii_call_method("applyRemovalPolicy", [policy]) end |
#bind_for_gateway_o_auth_target(scopes, custom_parameters = nil) ⇒ AWSCDK::BedrockAgentCore::GatewayOAuth2IdentityBinding
ARNs and OAuth scopes for {@link GatewayCredentialProvider.fromOauthIdentity } / {@link GatewayCredentialProvider.fromOauthIdentityArn }.
649 650 651 652 653 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 649 def bind_for_gateway_o_auth_target(scopes, custom_parameters = nil) Jsii::Type.check_type(scopes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "scopes") Jsii::Type.check_type(custom_parameters, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "customParameters") unless custom_parameters.nil? jsii_call_method("bindForGatewayOAuthTarget", [scopes, custom_parameters]) end |
#callback_url ⇒ String?
Callback URL for the OAuth2 authorization flow.
527 528 529 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 527 def callback_url() jsii_get_property("callbackUrl") end |
#client_secret_arn ⇒ String?
The ARN of the Secrets Manager secret for the OAuth2 client credentials.
May be undefined for resources imported without this attribute.
536 537 538 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 536 def client_secret_arn() jsii_get_property("clientSecretArn") end |
#created_time ⇒ String?
Timestamp when the credential provider was created.
543 544 545 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 543 def created_time() jsii_get_property("createdTime") end |
#credential_provider_arn ⇒ String
The ARN of this credential provider.
492 493 494 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 492 def credential_provider_arn() jsii_get_property("credentialProviderArn") end |
#credential_provider_vendor ⇒ String
OAuth2 vendor string passed to CloudFormation.
499 500 501 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 499 def credential_provider_vendor() jsii_get_property("credentialProviderVendor") end |
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
457 458 459 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 457 def env() jsii_get_property("env") end |
#generate_physical_name ⇒ String
610 611 612 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 610 def generate_physical_name() jsii_call_method("generatePhysicalName", []) end |
#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. bucket.bucketArn).
Normally, this token will resolve to arn_attr, but if the resource is
referenced across environments, arn_components will be used to synthesize
a concrete ARN with the resource's physical name. Make sure to reference
this.physicalName in arn_components.
624 625 626 627 628 629 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 624 def get_resource_arn_attribute(arn_attr, arn_components) Jsii::Type.check_type(arn_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arnAttr") arn_components = arn_components.is_a?(Hash) ? ::AWSCDK::ARNComponents.new(**arn_components.transform_keys(&:to_sym)) : arn_components Jsii::Type.check_type(arn_components, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5Bcm5Db21wb25lbnRzIn0=")), "arnComponents") jsii_call_method("getResourceArnAttribute", [arn_attr, arn_components]) end |
#get_resource_name_attribute(name_attr) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. bucket.bucketName).
Normally, this token will resolve to name_attr, but if the resource is
referenced across environments, it will be resolved to this.physicalName,
which will be a concrete name.
639 640 641 642 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 639 def get_resource_name_attribute(name_attr) Jsii::Type.check_type(name_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nameAttr") jsii_call_method("getResourceNameAttribute", [name_attr]) end |
#grant(grantee, *actions) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
660 661 662 663 664 665 666 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 660 def grant(grantee, *actions) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") actions.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actions[#{index}]") end jsii_call_method("grant", [grantee, *actions]) end |
#grant_admin(grantee) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
672 673 674 675 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 672 def grant_admin(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantAdmin", [grantee]) end |
#grant_full_access(grantee) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
681 682 683 684 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 681 def grant_full_access(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantFullAccess", [grantee]) end |
#grant_principal ⇒ AWSCDK::IAM::IPrincipal
The principal to grant permissions to.
506 507 508 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 506 def grant_principal() jsii_get_property("grantPrincipal") end |
#grant_read(grantee) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
690 691 692 693 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 690 def grant_read(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantRead", [grantee]) end |
#grant_use(grantee) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
699 700 701 702 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 699 def grant_use(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantUse", [grantee]) end |
#last_updated_time ⇒ String?
Timestamp when the credential provider was last updated.
550 551 552 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 550 def last_updated_time() jsii_get_property("lastUpdatedTime") end |
#node ⇒ Constructs::Node
The tree node.
442 443 444 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 442 def node() jsii_get_property("node") end |
#o_auth2_credential_provider_name ⇒ String
The name of this OAuth2 credential provider.
513 514 515 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 513 def o_auth2_credential_provider_name() jsii_get_property("oAuth2CredentialProviderName") end |
#o_auth2_credential_provider_ref ⇒ AWSCDK::Interfaces::AWSBedrockagentcore::OAuth2CredentialProviderReference
A reference to a OAuth2CredentialProvider resource.
520 521 522 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 520 def o_auth2_credential_provider_ref() jsii_get_property("oAuth2CredentialProviderRef") end |
#physical_name ⇒ String
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
This value will resolve to one of the following:
- a concrete value (e.g.
"my-awesome-bucket") undefined, when a name should be generated by CloudFormation- a concrete name generated automatically during synthesis, in cross-environment scenarios.
471 472 473 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 471 def physical_name() jsii_get_property("physicalName") end |
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
478 479 480 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 478 def stack() jsii_get_property("stack") end |
#to_string ⇒ String
Returns a string representation of this construct.
557 558 559 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 557 def to_string() jsii_call_method("toString", []) end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
570 571 572 573 574 575 |
# File 'bedrock_agent_core/o_auth2_credential_provider.rb', line 570 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |