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 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?: 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 string
- The unique name of the resource.
- args PublicBucketPolicyArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- 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 ComponentResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
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
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
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
pulumi
Awss3Bucket - 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:
- Ownership
Controls Pulumi.Aws. S3. Bucket Ownership Controls - This type is defined in the AWS Classic package.
- Public
Access Pulumi.Block Aws. S3. Bucket Public Access Block - This type is defined in the AWS Classic package.
- Ownership
Controls BucketOwnership Controls - This type is defined in the AWS Classic package.
- Public
Access BucketBlock Public Access Block - This type is defined in the AWS Classic package.
- ownership
Controls BucketOwnership Controls - This type is defined in the AWS Classic package.
- public
Access BucketBlock Public Access Block - This type is defined in the AWS Classic package.
- ownership
Controls pulumiAwss3Bucket Ownership Controls - This type is defined in the AWS Classic package.
- public
Access pulumiBlock Awss3Bucket Public Access Block - This type is defined in the AWS Classic package.
- ownership_
controls pulumi_aws.s3. Bucket Ownership Controls - This type is defined in the AWS Classic package.
- public_
access_ pulumi_block aws.s3. Bucket Public Access Block - This type is defined in the AWS Classic package.
- ownership
Controls aws:s3:BucketOwnership Controls - This type is defined in the AWS Classic package.
- public
Access aws:s3:BucketBlock Public Access Block - This type is defined in the AWS Classic package.
Package Details
- Repository
- aws-static-website pulumi/pulumi-aws-static-website
- License
AWS Static Website v0.4.0 published on Wednesday, Apr 19, 2023 by Pulumi