OAuthCredentialProviderProperty Struct
The OAuth credential provider for the gateway target.
| 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 oAuthCredentialProviderProperty: bedrockagentcore.CfnGatewayTarget.OAuthCredentialProviderProperty = {
providerArn: 'providerArn',
scopes: ['scopes'],
// the properties below are optional
customParameters: {
customParametersKey: 'customParameters',
},
defaultReturnUrl: 'defaultReturnUrl',
grantType: 'grantType',
};
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
o_auth_credential_provider_property = bedrockagentcore.CfnGatewayTarget.OAuthCredentialProviderProperty(
provider_arn="providerArn",
scopes=["scopes"],
# the properties below are optional
custom_parameters={
"custom_parameters_key": "customParameters"
},
default_return_url="defaultReturnUrl",
grant_type="grantType"
)
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.*;
OAuthCredentialProviderProperty oAuthCredentialProviderProperty = OAuthCredentialProviderProperty.builder()
.providerArn("providerArn")
.scopes(List.of("scopes"))
// the properties below are optional
.customParameters(Map.of(
"customParametersKey", "customParameters"))
.defaultReturnUrl("defaultReturnUrl")
.grantType("grantType")
.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 oAuthCredentialProviderProperty = new OAuthCredentialProviderProperty {
ProviderArn = "providerArn",
Scopes = new [] { "scopes" },
// the properties below are optional
CustomParameters = new Dictionary<string, string> {
{ "customParametersKey", "customParameters" }
},
DefaultReturnUrl = "defaultReturnUrl",
GrantType = "grantType"
};
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"
oAuthCredentialProviderProperty := &OAuthCredentialProviderProperty{
ProviderArn: jsii.String("providerArn"),
Scopes: []*string{
jsii.String("scopes"),
},
// the properties below are optional
CustomParameters: map[string]*string{
"customParametersKey": jsii.String("customParameters"),
},
DefaultReturnUrl: jsii.String("defaultReturnUrl"),
GrantType: jsii.String("grantType"),
}
Properties
customParametersoptionalIResolvable | { [key: string]: string }custom_parametersoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]customParametersoptionalIResolvableCustomParametersoptionalIResolvableCustomParametersoptionalinterface{} #The OAuth credential provider.
defaultReturnUrloptionalstringdefault_return_urloptionalstrdefaultReturnUrloptionalStringDefaultReturnUrloptionalstringDefaultReturnUrloptional*string #grantTypeoptionalstringgrant_typeoptionalstrgrantTypeoptionalStringGrantTypeoptionalstringGrantTypeoptional*string #The provider ARN for the gateway target.
The OAuth credential provider scopes.