# SpatialStaticFileProperty

A static file that contains the geospatial data.

- 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 spatialStaticFileProperty: quicksight.CfnAnalysis.SpatialStaticFileProperty = {
  staticFileId: 'staticFileId',

  // the properties below are optional
  source: {
    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

spatial_static_file_property = quicksight.CfnAnalysis.SpatialStaticFileProperty(
    static_file_id="staticFileId",

    # the properties below are optional
    source=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.*;

SpatialStaticFileProperty spatialStaticFileProperty = SpatialStaticFileProperty.builder()
        .staticFileId("staticFileId")

        // the properties below are optional
        .source(StaticFileSourceProperty.builder()
                .s3Options(StaticFileS3SourceOptionsProperty.builder()
                        .bucketName("bucketName")
                        .objectKey("objectKey")
                        .region("region")
                        .build())
                .urlOptions(StaticFileUrlSourceOptionsProperty.builder()
                        .url("url")
                        .build())
                .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 spatialStaticFileProperty = new SpatialStaticFileProperty {
    StaticFileId = "staticFileId",

    // the properties below are optional
    Source = 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"

spatialStaticFileProperty := &SpatialStaticFileProperty{
	StaticFileId: jsii.String("staticFileId"),

	// the properties below are optional
	Source: &StaticFileSourceProperty{
		S3Options: &StaticFileS3SourceOptionsProperty{
			BucketName: jsii.String("bucketName"),
			ObjectKey: jsii.String("objectKey"),
			Region: jsii.String("region"),
		},
		UrlOptions: &StaticFileUrlSourceOptionsProperty{
			Url: jsii.String("url"),
		},
	},
}
```

## Properties

- `source`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.StaticFileSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.StaticFileSourceProperty.html) — The source of the spatial static file.

- `staticFileId`: string (required) — The ID of the spatial static file.
