awsstaticwebsite

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

A Pulumi component to deploy a static website to AWS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type AtomicDeploymentArgs added in v0.1.0

type AtomicDeploymentArgs struct {
	// The Pulumi Organization you are deploying the website with. You only need to set this option if you are using an Organization in the Pulumi Service.
	PulumiOrganization *string `pulumi:"pulumiOrganization"`
}

type Provider

type Provider struct {
	pulumi.ProviderResourceState
}

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type Website

type Website struct {
	pulumi.ResourceState

	// The name of the s3 bucket containing the website contents.
	BucketName pulumi.StringOutput `pulumi:"bucketName"`
	// The website URL for the s3 bucket.
	BucketWebsiteURL pulumi.StringOutput `pulumi:"bucketWebsiteURL"`
	// The domain name for the CDN.
	CdnDomainName pulumi.StringPtrOutput `pulumi:"cdnDomainName"`
	// The URL for the CDN
	CdnURL pulumi.StringPtrOutput `pulumi:"cdnURL"`
	// The name of the s3 bucket containing the access logs.
	LogsBucketName pulumi.StringPtrOutput `pulumi:"logsBucketName"`
	// The URL to access the website
	WebsiteURL pulumi.StringOutput `pulumi:"websiteURL"`
}

func NewWebsite

func NewWebsite(ctx *pulumi.Context,
	name string, args *WebsiteArgs, opts ...pulumi.ResourceOption) (*Website, error)

NewWebsite registers a new resource with the given unique name, arguments, and options.

func (*Website) ElementType

func (*Website) ElementType() reflect.Type

func (*Website) ToWebsiteOutput

func (i *Website) ToWebsiteOutput() WebsiteOutput

func (*Website) ToWebsiteOutputWithContext

func (i *Website) ToWebsiteOutputWithContext(ctx context.Context) WebsiteOutput

type WebsiteArgs

type WebsiteArgs struct {
	// Enable a cache control header to be attached to every request from an Cloudfront Function.
	AddWebsiteVersionHeader pulumi.BoolPtrInput
	// Provision a new bucket on each deployment.
	AtomicDeployments pulumi.BoolPtrInput
	// TTL in seconds for cached objects.
	CacheTTL pulumi.Float64PtrInput
	// The ARN of the ACM certificate to use for serving HTTPS. If one is not provided, a certificate will be created during the provisioning process.
	CertificateARN pulumi.StringPtrInput
	// default 404 page
	Error404 pulumi.StringPtrInput
	// The default document for the site. Defaults to index.html
	IndexHTML pulumi.StringPtrInput
	// The price class to use for the CloudFront configuration. Defaults to 100 if not specified. Valid values are `all`, `100`, and `200`
	PriceClass pulumi.StringPtrInput
	// The root directory containing the website's contents.
	SitePath pulumi.StringInput
	// The domain used to serve the content. A Route53 hosted zone must exist for this domain.
	TargetDomain pulumi.StringPtrInput
	// Provision CloudFront CDN to serve content.
	WithCDN pulumi.BoolPtrInput
	// Provision a bucket to hold access logs.
	WithLogs pulumi.BoolPtrInput
}

The set of arguments for constructing a Website resource.

func (WebsiteArgs) ElementType

func (WebsiteArgs) ElementType() reflect.Type

type WebsiteArray

type WebsiteArray []WebsiteInput

func (WebsiteArray) ElementType

func (WebsiteArray) ElementType() reflect.Type

func (WebsiteArray) ToWebsiteArrayOutput

func (i WebsiteArray) ToWebsiteArrayOutput() WebsiteArrayOutput

func (WebsiteArray) ToWebsiteArrayOutputWithContext

func (i WebsiteArray) ToWebsiteArrayOutputWithContext(ctx context.Context) WebsiteArrayOutput

type WebsiteArrayInput

type WebsiteArrayInput interface {
	pulumi.Input

	ToWebsiteArrayOutput() WebsiteArrayOutput
	ToWebsiteArrayOutputWithContext(context.Context) WebsiteArrayOutput
}

WebsiteArrayInput is an input type that accepts WebsiteArray and WebsiteArrayOutput values. You can construct a concrete instance of `WebsiteArrayInput` via:

WebsiteArray{ WebsiteArgs{...} }

type WebsiteArrayOutput

type WebsiteArrayOutput struct{ *pulumi.OutputState }

func (WebsiteArrayOutput) ElementType

func (WebsiteArrayOutput) ElementType() reflect.Type

func (WebsiteArrayOutput) Index

func (WebsiteArrayOutput) ToWebsiteArrayOutput

func (o WebsiteArrayOutput) ToWebsiteArrayOutput() WebsiteArrayOutput

func (WebsiteArrayOutput) ToWebsiteArrayOutputWithContext

func (o WebsiteArrayOutput) ToWebsiteArrayOutputWithContext(ctx context.Context) WebsiteArrayOutput

type WebsiteInput

type WebsiteInput interface {
	pulumi.Input

	ToWebsiteOutput() WebsiteOutput
	ToWebsiteOutputWithContext(ctx context.Context) WebsiteOutput
}

type WebsiteMap

type WebsiteMap map[string]WebsiteInput

func (WebsiteMap) ElementType

func (WebsiteMap) ElementType() reflect.Type

func (WebsiteMap) ToWebsiteMapOutput

func (i WebsiteMap) ToWebsiteMapOutput() WebsiteMapOutput

func (WebsiteMap) ToWebsiteMapOutputWithContext

func (i WebsiteMap) ToWebsiteMapOutputWithContext(ctx context.Context) WebsiteMapOutput

type WebsiteMapInput

type WebsiteMapInput interface {
	pulumi.Input

	ToWebsiteMapOutput() WebsiteMapOutput
	ToWebsiteMapOutputWithContext(context.Context) WebsiteMapOutput
}

WebsiteMapInput is an input type that accepts WebsiteMap and WebsiteMapOutput values. You can construct a concrete instance of `WebsiteMapInput` via:

WebsiteMap{ "key": WebsiteArgs{...} }

type WebsiteMapOutput

type WebsiteMapOutput struct{ *pulumi.OutputState }

func (WebsiteMapOutput) ElementType

func (WebsiteMapOutput) ElementType() reflect.Type

func (WebsiteMapOutput) MapIndex

func (WebsiteMapOutput) ToWebsiteMapOutput

func (o WebsiteMapOutput) ToWebsiteMapOutput() WebsiteMapOutput

func (WebsiteMapOutput) ToWebsiteMapOutputWithContext

func (o WebsiteMapOutput) ToWebsiteMapOutputWithContext(ctx context.Context) WebsiteMapOutput

type WebsiteOutput

type WebsiteOutput struct{ *pulumi.OutputState }

func (WebsiteOutput) ElementType

func (WebsiteOutput) ElementType() reflect.Type

func (WebsiteOutput) ToWebsiteOutput

func (o WebsiteOutput) ToWebsiteOutput() WebsiteOutput

func (WebsiteOutput) ToWebsiteOutputWithContext

func (o WebsiteOutput) ToWebsiteOutputWithContext(ctx context.Context) WebsiteOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL