GithubOauth2ProviderConfigInputProperty Struct
Input configuration for a GitHub OAuth2 provider.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const githubOauth2ProviderConfigInputProperty: bedrockagentcore.CfnOAuth2CredentialProvider.GithubOauth2ProviderConfigInputProperty = {
clientId: 'clientId',
// the properties below are optional
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore
github_oauth2_provider_config_input_property = bedrockagentcore.CfnOAuth2CredentialProvider.GithubOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
client_secret="clientSecret",
client_secret_config=bedrockagentcore.CfnOAuth2CredentialProvider.SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;
GithubOauth2ProviderConfigInputProperty githubOauth2ProviderConfigInputProperty = GithubOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;
var githubOauth2ProviderConfigInputProperty = new GithubOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
githubOauth2ProviderConfigInputProperty := &GithubOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
}
Properties
clientSecretoptionalstringclient_secretoptionalstrclientSecretoptionalStringClientSecretoptionalstringClientSecretoptional*string #clientSecretConfigoptionalIResolvable | CfnOAuth2CredentialProvider.client_secret_configoptionaltyping.Union[IResolvable, SecretReferenceProperty]clientSecretConfigoptionalIResolvableClientSecretConfigoptionalIResolvableClientSecretConfigoptionalinterface{} #A reference to a customer-provided secret stored in AWS Secrets Manager.
clientSecretSourceoptionalstringclient_secret_sourceoptionalstrclientSecretSourceoptionalStringClientSecretSourceoptionalstringClientSecretSourceoptional*string #