> **Experimental**
>
> `@aws-cdk/app-staging-synthesizer-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# FileStagingLocation

Information returned by the Staging Stack for each file asset.

Returned by: [IStagingResources.addFile](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_app-staging-synthesizer-alpha.IStagingResources.html#addfile)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/staging-stack.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/staging-stack.ts#L7)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as app_staging_synthesizer_alpha from '@aws-cdk/app-staging-synthesizer-alpha';
import * as cdk from 'aws-cdk-lib';

declare const stack: cdk.Stack;
const fileStagingLocation: app_staging_synthesizer_alpha.FileStagingLocation = {
  bucketName: 'bucketName',

  // the properties below are optional
  assumeRoleArn: 'assumeRoleArn',
  dependencyStack: stack,
  prefix: 'prefix',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.app_staging_synthesizer_alpha as app_staging_synthesizer_alpha
import aws_cdk as cdk

# stack: cdk.Stack

file_staging_location = app_staging_synthesizer_alpha.FileStagingLocation(
    bucket_name="bucketName",

    # the properties below are optional
    assume_role_arn="assumeRoleArn",
    dependency_stack=stack,
    prefix="prefix"
)
```

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.app.staging.synthesizer.alpha.*;
import software.amazon.awscdk.*;

Stack stack;

FileStagingLocation fileStagingLocation = FileStagingLocation.builder()
        .bucketName("bucketName")

        // the properties below are optional
        .assumeRoleArn("assumeRoleArn")
        .dependencyStack(stack)
        .prefix("prefix")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AppStagingSynthesizer.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AppStagingSynthesizer.Alpha;
using Amazon.CDK;

Stack stack;

var fileStagingLocation = new FileStagingLocation {
    BucketName = "bucketName",

    // the properties below are optional
    AssumeRoleArn = "assumeRoleArn",
    DependencyStack = stack,
    Prefix = "prefix"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/appstagingsynthesizeralpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import app_staging_synthesizer_alpha "github.com/aws/aws-cdk-go/appstagingsynthesizeralpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"

var stack Stack

fileStagingLocation := &FileStagingLocation{
	BucketName: jsii.String("bucketName"),

	// the properties below are optional
	AssumeRoleArn: jsii.String("assumeRoleArn"),
	DependencyStack: stack,
	Prefix: jsii.String("prefix"),
}
```

## Properties

- `assumeRoleArn`: string — The ARN to assume to write files to this bucket.

  **Default:** Don't assume a role

- `bucketName`: string (required) — The name of the staging bucket.

- `dependencyStack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack that creates this bucket (leads to dependencies on it).

  **Default:** Don't add dependencies

- `prefix`: string = '' — A prefix to add to the keys.
