# StaticFileSourceProperty

The source of the static file.

- Source: Generated at build time
- Type last changed: v2.172.0 · 7 Dec 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const staticFileSourceProperty: quicksight.CfnAnalysis.StaticFileSourceProperty = {
  s3Options: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',
    region: 'region',
  },
  urlOptions: {
    url: 'url',
  },
};
```

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_quicksight as quicksight

static_file_source_property = quicksight.CfnAnalysis.StaticFileSourceProperty(
    s3_options=quicksight.CfnAnalysis.StaticFileS3SourceOptionsProperty(
        bucket_name="bucketName",
        object_key="objectKey",
        region="region"
    ),
    url_options=quicksight.CfnAnalysis.StaticFileUrlSourceOptionsProperty(
        url="url"
    )
)
```

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

StaticFileSourceProperty staticFileSourceProperty = StaticFileSourceProperty.builder()
        .s3Options(StaticFileS3SourceOptionsProperty.builder()
                .bucketName("bucketName")
                .objectKey("objectKey")
                .region("region")
                .build())
        .urlOptions(StaticFileUrlSourceOptionsProperty.builder()
                .url("url")
                .build())
        .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.QuickSight;

var staticFileSourceProperty = new StaticFileSourceProperty {
    S3Options = new StaticFileS3SourceOptionsProperty {
        BucketName = "bucketName",
        ObjectKey = "objectKey",
        Region = "region"
    },
    UrlOptions = new StaticFileUrlSourceOptionsProperty {
        Url = "url"
    }
};
```

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"

staticFileSourceProperty := &StaticFileSourceProperty{
	S3Options: &StaticFileS3SourceOptionsProperty{
		BucketName: jsii.String("bucketName"),
		ObjectKey: jsii.String("objectKey"),
		Region: jsii.String("region"),
	},
	UrlOptions: &StaticFileUrlSourceOptionsProperty{
		Url: jsii.String("url"),
	},
}
```

## Properties

- `s3Options`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.StaticFileS3SourceOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.StaticFileS3SourceOptionsProperty.html) — The structure that contains the Amazon S3 location to download the static file from.

- `urlOptions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.StaticFileUrlSourceOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.StaticFileUrlSourceOptionsProperty.html) — The structure that contains the URL to download the static file from.
