Experimental
@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
GatewayAttributes Struct
Attributes for importing an existing Gateway.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const role: iam.Role;
const gatewayAttributes: bedrock_agentcore_alpha.GatewayAttributes = {
gatewayArn: 'gatewayArn',
gatewayId: 'gatewayId',
gatewayName: 'gatewayName',
role: role,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
from aws_cdk import aws_iam as iam
# role: iam.Role
gateway_attributes = bedrock_agentcore_alpha.GatewayAttributes(
gateway_arn="gatewayArn",
gateway_id="gatewayId",
gateway_name="gatewayName",
role=role
)
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.bedrock.agentcore.alpha.*;
import software.amazon.awscdk.services.iam.*;
Role role;
GatewayAttributes gatewayAttributes = GatewayAttributes.builder()
.gatewayArn("gatewayArn")
.gatewayId("gatewayId")
.gatewayName("gatewayName")
.role(role)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
using Amazon.CDK.AWS.IAM;
Role role;
var gatewayAttributes = new GatewayAttributes {
GatewayArn = "gatewayArn",
GatewayId = "gatewayId",
GatewayName = "gatewayName",
Role = role
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var role Role
gatewayAttributes := &GatewayAttributes{
GatewayArn: jsii.String("gatewayArn"),
GatewayId: jsii.String("gatewayId"),
GatewayName: jsii.String("gatewayName"),
Role: role,
}
Properties
The ARN of the gateway.
The ID of the gateway.
The name of the gateway.