Skip to content
v2.278.0

StaticFileProperty Struct ​

The static file.

Example ​

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 staticFileProperty: quicksight.CfnAnalysis.StaticFileProperty = {
  imageStaticFile: {
    staticFileId: 'staticFileId',

    // the properties below are optional
    source: {
      s3Options: {
        bucketName: 'bucketName',
        objectKey: 'objectKey',
        region: 'region',
      },
      urlOptions: {
        url: 'url',
      },
    },
  },
  spatialStaticFile: {
    staticFileId: 'staticFileId',

    // the properties below are optional
    source: {
      s3Options: {
        bucketName: 'bucketName',
        objectKey: 'objectKey',
        region: 'region',
      },
      urlOptions: {
        url: 'url',
      },
    },
  },
};
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_property = quicksight.CfnAnalysis.StaticFileProperty(
    image_static_file=quicksight.CfnAnalysis.ImageStaticFileProperty(
        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"
            )
        )
    ),
    spatial_static_file=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
// 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.*;

StaticFileProperty staticFileProperty = StaticFileProperty.builder()
        .imageStaticFile(ImageStaticFileProperty.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())
        .spatialStaticFile(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())
        .build();
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 staticFileProperty = new StaticFileProperty {
    ImageStaticFile = new ImageStaticFileProperty {
        StaticFileId = "staticFileId",

        // the properties below are optional
        Source = new StaticFileSourceProperty {
            S3Options = new StaticFileS3SourceOptionsProperty {
                BucketName = "bucketName",
                ObjectKey = "objectKey",
                Region = "region"
            },
            UrlOptions = new StaticFileUrlSourceOptionsProperty {
                Url = "url"
            }
        }
    },
    SpatialStaticFile = 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"
            }
        }
    }
};
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"

staticFileProperty := &StaticFileProperty{
	ImageStaticFile: &ImageStaticFileProperty{
		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"),
			},
		},
	},
	SpatialStaticFile: &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 ​

imageStaticFileoptionalIResolvable | CfnAnalysis.ImageStaticFilePropertyimage_static_fileoptionaltyping.Union[IResolvable, ImageStaticFileProperty]imageStaticFileoptionalIResolvableImageStaticFileoptionalIResolvableImageStaticFileoptionalinterface{} #
The image static file.
spatialStaticFileoptionalIResolvable | CfnAnalysis.SpatialStaticFilePropertyspatial_static_fileoptionaltyping.Union[IResolvable, SpatialStaticFileProperty]spatialStaticFileoptionalIResolvableSpatialStaticFileoptionalIResolvableSpatialStaticFileoptionalinterface{} #
The spacial static file.