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

aws-static-website logo
AWS Static Website v0.4.0 published on Wednesday, Apr 19, 2023 by Pulumi

    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?: CustomResourceOptions);
    @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, CustomResourceOptions? opts = null)
    public PublicBucketPolicy(String name, PublicBucketPolicyArgs args)
    public PublicBucketPolicy(String name, PublicBucketPolicyArgs args, CustomResourceOptions options)
    
    type: aws-static-website:PublicBucketPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PublicBucketPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args PublicBucketPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PublicBucketPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PublicBucketPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    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,
    });
    
    example, err := awsstaticwebsite.NewPublicBucketPolicy(ctx, "publicBucketPolicyResource", &awsstaticwebsite.PublicBucketPolicyArgs{
    	Bucket: pulumi.Any(bucket),
    })
    
    var publicBucketPolicyResource = new PublicBucketPolicy("publicBucketPolicyResource", PublicBucketPolicyArgs.builder()
        .bucket(bucket)
        .build());
    
    public_bucket_policy_resource = aws_static_website.PublicBucketPolicy("publicBucketPolicyResource", bucket=bucket)
    
    const publicBucketPolicyResource = new aws_static_website.PublicBucketPolicy("publicBucketPolicyResource", {bucket: bucket});
    
    type: aws-static-website:PublicBucketPolicy
    properties:
        bucket: ${bucket}
    

    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

    The PublicBucketPolicy resource accepts the following input properties:

    Bucket Pulumi.Aws.S3.Bucket
    The bucket to apply the public policy to. This type is defined in the AWS Classic package.
    Bucket Bucket
    The bucket to apply the public policy to. This type is defined in the AWS Classic package.
    bucket Bucket
    The bucket to apply the public policy to. This type is defined in the AWS Classic package.
    bucket pulumiAwss3Bucket
    The bucket to apply the public policy to. This type is defined in the AWS Classic package.
    bucket pulumi_aws.s3.Bucket
    The bucket to apply the public policy to. This type is defined in the AWS Classic package.
    bucket 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
    aws-static-website logo
    AWS Static Website v0.4.0 published on Wednesday, Apr 19, 2023 by Pulumi