s3

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bucket = Resource{
	AwsType: "AWS::S3::Bucket",

	Attributes: map[string]Schema{
		"DomainName": Schema{
			Type: ValueString,
		},

		"WebsiteURL": Schema{
			Type: ValueString,
		},
	},

	ReturnValue: Schema{
		Type: ValueString,
	},

	Properties: Properties{
		"AccessControl": Schema{
			Type: accessControl,
		},

		"BucketName": Schema{
			Type: ValueString,
			ValidateFunc: RegexpValidate(
				`^[a-z0-9\.\-]+$`,
				"The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-).",
			),
		},

		"CorsConfiguration": Schema{
			Type: corsConfiguration,
		},

		"LifecycleConfiguration": Schema{
			Type: lifecycleConfiguration,
		},

		"LoggingConfiguration": Schema{
			Type: loggingConfiguration,
		},

		"NotificationConfiguration": Schema{
			Type: notificationConfiguration,
		},

		"ReplicationConfiguration": Schema{
			Type: replicationConfiguration,
		},

		"Tags": Schema{
			Type: Multiple(common.ResourceTag),
		},

		"VersioningConfiguration": Schema{
			Type: versioningConfiguration,
		},

		"WebsiteConfiguration": Schema{
			Type: websiteConfiguration,
		},
	},
}

see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html

View Source
var BucketPolicy = Resource{
	AwsType: "AWS::S3::BucketPolicy",

	Properties: Properties{
		"Bucket": Schema{
			Type:     ValueString,
			Required: constraints.Always,
		},

		"PolicyDocument": Schema{
			Type:     JSON,
			Required: constraints.Always,
		},
	},
}

see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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