# HttpStageAttributes

The attributes used to import existing HttpStage.

Extends: [StageAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.StageAttributes.html)
Used as argument in: [HttpStage.fromHttpStageAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.HttpStage.html#fromhttpstageattributes)

- Source: [`aws-apigatewayv2/lib/http/stage.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/stage.ts#L116)
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';

declare const httpApi: apigatewayv2.HttpApi;
const httpStageAttributes: apigatewayv2.HttpStageAttributes = {
  api: httpApi,
  stageName: 'stageName',
};
```

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_apigatewayv2 as apigatewayv2

# http_api: apigatewayv2.HttpApi

http_stage_attributes = apigatewayv2.HttpStageAttributes(
    api=http_api,
    stage_name="stageName"
)
```

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

HttpApi httpApi;

HttpStageAttributes httpStageAttributes = HttpStageAttributes.builder()
        .api(httpApi)
        .stageName("stageName")
        .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.Apigatewayv2;

HttpApi httpApi;

var httpStageAttributes = new HttpStageAttributes {
    Api = httpApi,
    StageName = "stageName"
};
```

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 httpApi HttpApi

httpStageAttributes := &HttpStageAttributes{
	Api: httpApi,
	StageName: jsii.String("stageName"),
}
```

## Properties

- `api`: [IHttpApi](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.IHttpApi.html) (required) — The API to which this stage is associated.

- `stageName`: string (required) — The name of the stage.
