CfnPluginProps Struct
Properties for defining a CfnPlugin.
| 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_qbusiness as qbusiness } from 'aws-cdk-lib';
declare const noAuthConfiguration: any;
const cfnPluginProps: qbusiness.CfnPluginProps = {
authConfiguration: {
basicAuthConfiguration: {
roleArn: 'roleArn',
secretArn: 'secretArn',
},
noAuthConfiguration: noAuthConfiguration,
oAuth2ClientCredentialConfiguration: {
roleArn: 'roleArn',
secretArn: 'secretArn',
// the properties below are optional
authorizationUrl: 'authorizationUrl',
tokenUrl: 'tokenUrl',
},
},
displayName: 'displayName',
type: 'type',
// the properties below are optional
applicationId: 'applicationId',
customPluginConfiguration: {
apiSchema: {
payload: 'payload',
s3: {
bucket: 'bucket',
key: 'key',
},
},
apiSchemaType: 'apiSchemaType',
description: 'description',
},
serverUrl: 'serverUrl',
state: 'state',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_qbusiness as qbusiness
# no_auth_configuration: Any
cfn_plugin_props = qbusiness.CfnPluginProps(
auth_configuration=qbusiness.CfnPlugin.PluginAuthConfigurationProperty(
basic_auth_configuration=qbusiness.CfnPlugin.BasicAuthConfigurationProperty(
role_arn="roleArn",
secret_arn="secretArn"
),
no_auth_configuration=no_auth_configuration,
o_auth2_client_credential_configuration=qbusiness.CfnPlugin.OAuth2ClientCredentialConfigurationProperty(
role_arn="roleArn",
secret_arn="secretArn",
# the properties below are optional
authorization_url="authorizationUrl",
token_url="tokenUrl"
)
),
display_name="displayName",
type="type",
# the properties below are optional
application_id="applicationId",
custom_plugin_configuration=qbusiness.CfnPlugin.CustomPluginConfigurationProperty(
api_schema=qbusiness.CfnPlugin.APISchemaProperty(
payload="payload",
s3=qbusiness.CfnPlugin.S3Property(
bucket="bucket",
key="key"
)
),
api_schema_type="apiSchemaType",
description="description"
),
server_url="serverUrl",
state="state",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.qbusiness.*;
Object noAuthConfiguration;
CfnPluginProps cfnPluginProps = CfnPluginProps.builder()
.authConfiguration(PluginAuthConfigurationProperty.builder()
.basicAuthConfiguration(BasicAuthConfigurationProperty.builder()
.roleArn("roleArn")
.secretArn("secretArn")
.build())
.noAuthConfiguration(noAuthConfiguration)
.oAuth2ClientCredentialConfiguration(OAuth2ClientCredentialConfigurationProperty.builder()
.roleArn("roleArn")
.secretArn("secretArn")
// the properties below are optional
.authorizationUrl("authorizationUrl")
.tokenUrl("tokenUrl")
.build())
.build())
.displayName("displayName")
.type("type")
// the properties below are optional
.applicationId("applicationId")
.customPluginConfiguration(CustomPluginConfigurationProperty.builder()
.apiSchema(APISchemaProperty.builder()
.payload("payload")
.s3(S3Property.builder()
.bucket("bucket")
.key("key")
.build())
.build())
.apiSchemaType("apiSchemaType")
.description("description")
.build())
.serverUrl("serverUrl")
.state("state")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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.QBusiness;
var noAuthConfiguration;
var cfnPluginProps = new CfnPluginProps {
AuthConfiguration = new PluginAuthConfigurationProperty {
BasicAuthConfiguration = new BasicAuthConfigurationProperty {
RoleArn = "roleArn",
SecretArn = "secretArn"
},
NoAuthConfiguration = noAuthConfiguration,
OAuth2ClientCredentialConfiguration = new OAuth2ClientCredentialConfigurationProperty {
RoleArn = "roleArn",
SecretArn = "secretArn",
// the properties below are optional
AuthorizationUrl = "authorizationUrl",
TokenUrl = "tokenUrl"
}
},
DisplayName = "displayName",
Type = "type",
// the properties below are optional
ApplicationId = "applicationId",
CustomPluginConfiguration = new CustomPluginConfigurationProperty {
ApiSchema = new APISchemaProperty {
Payload = "payload",
S3 = new S3Property {
Bucket = "bucket",
Key = "key"
}
},
ApiSchemaType = "apiSchemaType",
Description = "description"
},
ServerUrl = "serverUrl",
State = "state",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
var noAuthConfiguration interface{}
cfnPluginProps := &CfnPluginProps{
AuthConfiguration: &PluginAuthConfigurationProperty{
BasicAuthConfiguration: &BasicAuthConfigurationProperty{
RoleArn: jsii.String("roleArn"),
SecretArn: jsii.String("secretArn"),
},
NoAuthConfiguration: noAuthConfiguration,
OAuth2ClientCredentialConfiguration: &OAuth2ClientCredentialConfigurationProperty{
RoleArn: jsii.String("roleArn"),
SecretArn: jsii.String("secretArn"),
// the properties below are optional
AuthorizationUrl: jsii.String("authorizationUrl"),
TokenUrl: jsii.String("tokenUrl"),
},
},
DisplayName: jsii.String("displayName"),
Type: jsii.String("type"),
// the properties below are optional
ApplicationId: jsii.String("applicationId"),
CustomPluginConfiguration: &CustomPluginConfigurationProperty{
ApiSchema: &APISchemaProperty{
Payload: jsii.String("payload"),
S3: &S3Property{
Bucket: jsii.String("bucket"),
Key: jsii.String("key"),
},
},
ApiSchemaType: jsii.String("apiSchemaType"),
Description: jsii.String("description"),
},
ServerUrl: jsii.String("serverUrl"),
State: jsii.String("state"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
applicationIdoptionalstringapplication_idoptionalstrapplicationIdoptionalStringApplicationIdoptionalstringApplicationIdoptional*string #The identifier of the application that will contain the plugin.
authConfigurationIResolvable | CfnPlugin.auth_configurationtyping.Union[IResolvable, PluginAuthConfigurationProperty]authConfigurationIResolvableAuthConfigurationIResolvableAuthConfigurationinterface{} required #Authentication configuration information for an Amazon Q Business plugin.
customPluginConfigurationoptionalIResolvable | CfnPlugin.custom_plugin_configurationoptionaltyping.Union[IResolvable, CustomPluginConfigurationProperty]customPluginConfigurationoptionalIResolvableCustomPluginConfigurationoptionalIResolvableCustomPluginConfigurationoptionalinterface{} #Configuration information required to create a custom plugin.
The name of the plugin.
serverUrloptionalstringserver_urloptionalstrserverUrloptionalStringServerUrloptionalstringServerUrloptional*string #The plugin server URL used for configuration.
The current status of the plugin.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A list of key-value pairs that identify or categorize the data source connector.
You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + -
The type of the plugin.