Skip to main content

S3WebsiteSchema

S3WebsiteSchema is the schema of the S3Website resource: an S3 bucket serving a static website from its website endpoint. Terraform provisions it as aws_s3_object.

@group

Resources/S3Website

@overrideProperty

parents - This resource has no parents.

@overrideProperty

resourceId - The resource id is of format bucket-<bucket-name>

Hierarchy

  • BaseResourceSchema
    • S3WebsiteSchema

Index

Properties

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

properties

properties: { awsAccountId: string; awsRegionId: string; Bucket: string; ErrorDocument: string; IndexDocument: string }

Input properties.

  • properties.awsAccountId - The AWS account id.
  • properties.awsRegionId - The AWS region id.
  • properties.Bucket - The name of the bucket.
  • properties.ErrorDocument - Path of the error document, e.g. error.html.
  • properties.IndexDocument - Path of the index document, e.g. index.html.

Type declaration

  • awsAccountId: string
  • awsRegionId: string
  • Bucket: string
  • ErrorDocument: string
  • IndexDocument: string

inheritedresourceId

resourceId: string

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: { Arn?: string; awsRegionId?: string; RegionalDomainName?: string } = { Arn: 'arn:aws:s3:::mock-website-bucket', awsRegionId: 'us-east-1', RegionalDomainName: 'mock-website-bucket.s3.us-east-1.amazonaws.com', }

Saved response.

  • response.Arn - The ARN of the bucket.
  • response.awsRegionId - The AWS region id.
  • response.RegionalDomainName - The bucket's REST endpoint.

Type declaration

  • optionalArn?: string
  • optionalawsRegionId?: string
  • optionalRegionalDomainName?: string

inheritedscope

scope: string[]

The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.

sourcePathDigests

sourcePathDigests: {} = {}

Type declaration

  • [remotePath string]: string

inheritedtags

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string