IMcpGatewayTarget
- class aws_cdk.aws_bedrockagentcore.IMcpGatewayTarget(*args, **kwargs)
Bases:
IGatewayTarget,ProtocolInterface for MCP gateway targets.
Extends the base gateway target interface with MCP-specific properties. MCP targets expose tools using the Model Context Protocol.
Methods
- apply_removal_policy(policy)
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).- Parameters:
policy (
RemovalPolicy)- Return type:
None
- grant(grantee, *actions)
Grants IAM actions to the IAM Principal.
- Parameters:
grantee (
IGrantable)actions (
str)
- Return type:
- grant_manage(grantee)
Grants
Create,Update, andDeleteactions on the Gateway Target.- Parameters:
grantee (
IGrantable)- Return type:
- grant_read(grantee)
Grants
GetandListactions on the Gateway Target.- Parameters:
grantee (
IGrantable)- Return type:
- with_(*mixins)
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.
- Parameters:
mixins (
IMixin) – The mixins to apply.- Return type:
- Returns:
This construct for chaining
Attributes
- created_at
Timestamp when the gateway target was created.
- Attribute:
true
- credential_provider_configurations
The credential provider configuration for the target.
- description
The description of the gateway target.
- env
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.
- gateway
The gateway that this target belongs to.
- gateway_target_name
The name of the gateway target.
- gateway_target_ref
(experimental) A reference to a GatewayTarget resource.
- Stability:
experimental
- node
The tree node.
- stack
The stack in which this resource is defined.
- status
The status of the gateway target.
- Attribute:
true
- status_reasons
The status reasons for the gateway target.
- Attribute:
true
- target_arn
The ARN of the gateway target resource.
- Attribute:
true
- target_id
The id of the gateway target.
- Attribute:
true
- target_protocol_type
The target protocol.
- target_type
The type of target (Lambda, OpenAPI, or Smithy).
- updated_at
Timestamp when the gateway target was last updated.
- Attribute:
true