awsstaticwebsite

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 11 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 CDNArgs added in v0.3.0

type CDNArgs struct {
	// A config block that triggers a cloudfront
	// function with specific actions.
	CloudfrontFunctionAssociations []cloudfront.DistributionOrderedCacheBehaviorFunctionAssociation `pulumi:"cloudfrontFunctionAssociations"`
	// The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers.
	ForwardedValues *cloudfront.DistributionDefaultCacheBehaviorForwardedValues `pulumi:"forwardedValues"`
	// A config block that triggers a lambda
	// function with specific actions.
	LambdaFunctionAssociations []cloudfront.DistributionOrderedCacheBehaviorLambdaFunctionAssociation `pulumi:"lambdaFunctionAssociations"`
}

type CDNArgsArgs added in v0.3.0

type CDNArgsArgs struct {
	// A config block that triggers a cloudfront
	// function with specific actions.
	CloudfrontFunctionAssociations cloudfront.DistributionOrderedCacheBehaviorFunctionAssociationArrayInput `pulumi:"cloudfrontFunctionAssociations"`
	// The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers.
	ForwardedValues cloudfront.DistributionDefaultCacheBehaviorForwardedValuesPtrInput `pulumi:"forwardedValues"`
	// A config block that triggers a lambda
	// function with specific actions.
	LambdaFunctionAssociations cloudfront.DistributionOrderedCacheBehaviorLambdaFunctionAssociationArrayInput `pulumi:"lambdaFunctionAssociations"`
}

func (CDNArgsArgs) ElementType added in v0.3.0

func (CDNArgsArgs) ElementType() reflect.Type

func (CDNArgsArgs) ToCDNArgsOutput added in v0.3.0

func (i CDNArgsArgs) ToCDNArgsOutput() CDNArgsOutput

func (CDNArgsArgs) ToCDNArgsOutputWithContext added in v0.3.0

func (i CDNArgsArgs) ToCDNArgsOutputWithContext(ctx context.Context) CDNArgsOutput

func (CDNArgsArgs) ToCDNArgsPtrOutput added in v0.3.0

func (i CDNArgsArgs) ToCDNArgsPtrOutput() CDNArgsPtrOutput

func (CDNArgsArgs) ToCDNArgsPtrOutputWithContext added in v0.3.0

func (i CDNArgsArgs) ToCDNArgsPtrOutputWithContext(ctx context.Context) CDNArgsPtrOutput

type CDNArgsInput added in v0.3.0

type CDNArgsInput interface {
	pulumi.Input

	ToCDNArgsOutput() CDNArgsOutput
	ToCDNArgsOutputWithContext(context.Context) CDNArgsOutput
}

CDNArgsInput is an input type that accepts CDNArgsArgs and CDNArgsOutput values. You can construct a concrete instance of `CDNArgsInput` via:

CDNArgsArgs{...}

type CDNArgsOutput added in v0.3.0

type CDNArgsOutput struct{ *pulumi.OutputState }

func (CDNArgsOutput) CloudfrontFunctionAssociations added in v0.3.0

A config block that triggers a cloudfront function with specific actions.

func (CDNArgsOutput) ElementType added in v0.3.0

func (CDNArgsOutput) ElementType() reflect.Type

func (CDNArgsOutput) ForwardedValues added in v0.3.0

The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers.

func (CDNArgsOutput) LambdaFunctionAssociations added in v0.3.0

A config block that triggers a lambda function with specific actions.

func (CDNArgsOutput) ToCDNArgsOutput added in v0.3.0

func (o CDNArgsOutput) ToCDNArgsOutput() CDNArgsOutput

func (CDNArgsOutput) ToCDNArgsOutputWithContext added in v0.3.0

func (o CDNArgsOutput) ToCDNArgsOutputWithContext(ctx context.Context) CDNArgsOutput

func (CDNArgsOutput) ToCDNArgsPtrOutput added in v0.3.0

func (o CDNArgsOutput) ToCDNArgsPtrOutput() CDNArgsPtrOutput

func (CDNArgsOutput) ToCDNArgsPtrOutputWithContext added in v0.3.0

func (o CDNArgsOutput) ToCDNArgsPtrOutputWithContext(ctx context.Context) CDNArgsPtrOutput

type CDNArgsPtrInput added in v0.3.0

type CDNArgsPtrInput interface {
	pulumi.Input

	ToCDNArgsPtrOutput() CDNArgsPtrOutput
	ToCDNArgsPtrOutputWithContext(context.Context) CDNArgsPtrOutput
}

CDNArgsPtrInput is an input type that accepts CDNArgsArgs, CDNArgsPtr and CDNArgsPtrOutput values. You can construct a concrete instance of `CDNArgsPtrInput` via:

        CDNArgsArgs{...}

or:

        nil

func CDNArgsPtr added in v0.3.0

func CDNArgsPtr(v *CDNArgsArgs) CDNArgsPtrInput

type CDNArgsPtrOutput added in v0.3.0

type CDNArgsPtrOutput struct{ *pulumi.OutputState }

func (CDNArgsPtrOutput) CloudfrontFunctionAssociations added in v0.3.0

A config block that triggers a cloudfront function with specific actions.

func (CDNArgsPtrOutput) Elem added in v0.3.0

func (CDNArgsPtrOutput) ElementType added in v0.3.0

func (CDNArgsPtrOutput) ElementType() reflect.Type

func (CDNArgsPtrOutput) ForwardedValues added in v0.3.0

The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers.

func (CDNArgsPtrOutput) LambdaFunctionAssociations added in v0.3.0

A config block that triggers a lambda function with specific actions.

func (CDNArgsPtrOutput) ToCDNArgsPtrOutput added in v0.3.0

func (o CDNArgsPtrOutput) ToCDNArgsPtrOutput() CDNArgsPtrOutput

func (CDNArgsPtrOutput) ToCDNArgsPtrOutputWithContext added in v0.3.0

func (o CDNArgsPtrOutput) ToCDNArgsPtrOutputWithContext(ctx context.Context) CDNArgsPtrOutput

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
	// Optional arguments used to configure the CDN.
	CdnArgs CDNArgsPtrInput
	// 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
	// An optional subdomain that can be used to serve the content. This can typically be used to provision a www alias or if a deeply nested subdomain is needed (e.g. foo.bar.baz.com).
	Subdomain pulumi.StringPtrInput
	// 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