# 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_aws-bedrock-agentcore-alpha.GatewayTarget.html#fromgatewaytargetattributes)

- Source: [`lib/gateway/targets/target.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/gateway/targets/target.ts#L231)

## Example

TypeScript:

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

declare const gateway: bedrock_agentcore_alpha.Gateway;
const gatewayTargetAttributes: bedrock_agentcore_alpha.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.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha

# gateway: bedrock_agentcore_alpha.Gateway

gateway_target_attributes = bedrock_agentcore_alpha.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.bedrock.agentcore.alpha.*;

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

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/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"

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_aws-bedrock-agentcore-alpha.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
