# GatewayAttributes

Attributes for importing an existing Gateway.

Used as argument in: [Gateway.fromGatewayAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Gateway.html#fromgatewayattributes)

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

## 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';
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:

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

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

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;
using Amazon.CDK.AWS.IAM;

Role role;

var gatewayAttributes = new GatewayAttributes {
    GatewayArn = "gatewayArn",
    GatewayId = "gatewayId",
    GatewayName = "gatewayName",
    Role = role
};
```

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

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

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

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

- `role`: [IRole](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) (required) — The IAM role that provides permissions for the gateway.
