# GatewayTargetAttributes

Attributes for importing an existing Gateway Target.

Used as argument in: [GatewayTarget.fromGatewayTargetAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.GatewayTarget.html#fromgatewaytargetattributes)

- Source: [`aws-bedrockagentcore/lib/gateway/targets/target.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/gateway/targets/target.ts#L224)
- Type last changed: v2.255.0 · 19 May 2026

## Example

TypeScript:

```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';

declare const gateway: bedrockagentcore.Gateway;
const gatewayTargetAttributes: bedrockagentcore.GatewayTargetAttributes = {
  gateway: gateway,
  gatewayTargetName: 'gatewayTargetName',
  targetArn: 'targetArn',
  targetId: 'targetId',

  // the properties below are optional
  createdAt: 'createdAt',
  status: 'status',
  updatedAt: 'updatedAt',
};
```

Python:

```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

# gateway: bedrockagentcore.Gateway

gateway_target_attributes = bedrockagentcore.GatewayTargetAttributes(
    gateway=gateway,
    gateway_target_name="gatewayTargetName",
    target_arn="targetArn",
    target_id="targetId",

    # the properties below are optional
    created_at="createdAt",
    status="status",
    updated_at="updatedAt"
)
```

Java:

```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.*;

Gateway gateway;

GatewayTargetAttributes gatewayTargetAttributes = GatewayTargetAttributes.builder()
        .gateway(gateway)
        .gatewayTargetName("gatewayTargetName")
        .targetArn("targetArn")
        .targetId("targetId")

        // the properties below are optional
        .createdAt("createdAt")
        .status("status")
        .updatedAt("updatedAt")
        .build();
```

C# / .NET:

```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;

Gateway gateway;

var gatewayTargetAttributes = new GatewayTargetAttributes {
    Gateway = gateway,
    GatewayTargetName = "gatewayTargetName",
    TargetArn = "targetArn",
    TargetId = "targetId",

    // the properties below are optional
    CreatedAt = "createdAt",
    Status = "status",
    UpdatedAt = "updatedAt"
};
```

Golang:

```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 gateway Gateway

gatewayTargetAttributes := &GatewayTargetAttributes{
	Gateway: gateway,
	GatewayTargetName: jsii.String("gatewayTargetName"),
	TargetArn: jsii.String("targetArn"),
	TargetId: jsii.String("targetId"),

	// the properties below are optional
	CreatedAt: jsii.String("createdAt"),
	Status: jsii.String("status"),
	UpdatedAt: jsii.String("updatedAt"),
}
```

## Properties

- `createdAt`: string — Optional creation timestamp.

  **Default:** No creation timestamp

- `gateway`: [IGateway](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.IGateway.html) (required) — The gateway this target belongs to.

- `gatewayTargetName`: string (required) — The name of the gateway target.

- `status`: string — Optional status of the target.

  **Default:** No status

- `targetArn`: string (required) — The ARN of the gateway target.

- `targetId`: string (required) — The ID of the gateway target.

- `updatedAt`: string — Optional last update timestamp.

  **Default:** No update timestamp
