1. Packages
  2. AWS Static Website
  3. API Docs
  4. PublicBucketPolicy
AWS Static Website v0.4.0 published on Wednesday, Apr 19, 2023 by Pulumi

aws-static-website.PublicBucketPolicy

Explore with Pulumi AI

Create PublicBucketPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new PublicBucketPolicy(name: string, args: PublicBucketPolicyArgs, opts?: ComponentResourceOptions);
@overload
def PublicBucketPolicy(resource_name: str,
                       args: PublicBucketPolicyArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def PublicBucketPolicy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       bucket: Optional[pulumi_aws.s3.Bucket] = None)
func NewPublicBucketPolicy(ctx *Context, name string, args PublicBucketPolicyArgs, opts ...ResourceOption) (*PublicBucketPolicy, error)
public PublicBucketPolicy(string name, PublicBucketPolicyArgs args, ComponentResourceOptions? opts = null)
public PublicBucketPolicy(String name, PublicBucketPolicyArgs args)
public PublicBucketPolicy(String name, PublicBucketPolicyArgs args, ComponentResourceOptions options)
type: aws-static-website:PublicBucketPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PublicBucketPolicyArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PublicBucketPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PublicBucketPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PublicBucketPolicyArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PublicBucketPolicyArgs
The arguments to resource properties.
options ComponentResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var publicBucketPolicyResource = new AwsStaticWebsite.PublicBucketPolicy("publicBucketPolicyResource", new()
{
    Bucket = bucket,
});
Copy
example, err := awsstaticwebsite.NewPublicBucketPolicy(ctx, "publicBucketPolicyResource", &awsstaticwebsite.PublicBucketPolicyArgs{
	Bucket: pulumi.Any(bucket),
})
Copy
var publicBucketPolicyResource = new PublicBucketPolicy("publicBucketPolicyResource", PublicBucketPolicyArgs.builder()
    .bucket(bucket)
    .build());
Copy
public_bucket_policy_resource = aws_static_website.PublicBucketPolicy("publicBucketPolicyResource", bucket=bucket)
Copy
const publicBucketPolicyResource = new aws_static_website.PublicBucketPolicy("publicBucketPolicyResource", {bucket: bucket});
Copy
type: aws-static-website:PublicBucketPolicy
properties:
    bucket: ${bucket}
Copy

PublicBucketPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The PublicBucketPolicy resource accepts the following input properties:

Bucket This property is required. Pulumi.Aws.S3.Bucket
The bucket to apply the public policy to. This type is defined in the AWS Classic package.
Bucket This property is required. Bucket
The bucket to apply the public policy to. This type is defined in the AWS Classic package.
bucket This property is required. Bucket
The bucket to apply the public policy to. This type is defined in the AWS Classic package.
bucket This property is required. pulumiAwss3Bucket
The bucket to apply the public policy to. This type is defined in the AWS Classic package.
bucket This property is required. pulumi_aws.s3.Bucket
The bucket to apply the public policy to. This type is defined in the AWS Classic package.
bucket This property is required. aws:s3:Bucket
The bucket to apply the public policy to. This type is defined in the AWS Classic package.

Outputs

All input properties are implicitly available as output properties. Additionally, the PublicBucketPolicy resource produces the following output properties:

OwnershipControls Pulumi.Aws.S3.BucketOwnershipControls
This type is defined in the AWS Classic package.
PublicAccessBlock Pulumi.Aws.S3.BucketPublicAccessBlock
This type is defined in the AWS Classic package.
OwnershipControls BucketOwnershipControls
This type is defined in the AWS Classic package.
PublicAccessBlock BucketPublicAccessBlock
This type is defined in the AWS Classic package.
ownershipControls BucketOwnershipControls
This type is defined in the AWS Classic package.
publicAccessBlock BucketPublicAccessBlock
This type is defined in the AWS Classic package.
ownershipControls pulumiAwss3BucketOwnershipControls
This type is defined in the AWS Classic package.
publicAccessBlock pulumiAwss3BucketPublicAccessBlock
This type is defined in the AWS Classic package.
ownership_controls pulumi_aws.s3.BucketOwnershipControls
This type is defined in the AWS Classic package.
public_access_block pulumi_aws.s3.BucketPublicAccessBlock
This type is defined in the AWS Classic package.
ownershipControls aws:s3:BucketOwnershipControls
This type is defined in the AWS Classic package.
publicAccessBlock aws:s3:BucketPublicAccessBlock
This type is defined in the AWS Classic package.

Package Details

Repository
aws-static-website pulumi/pulumi-aws-static-website
License