1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. s3outposts
  5. getBucketPolicy

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.s3outposts.getBucketPolicy

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type Definition for AWS::S3Outposts::BucketPolicy

Using getBucketPolicy

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getBucketPolicy(args: GetBucketPolicyArgs, opts?: InvokeOptions): Promise<GetBucketPolicyResult>
function getBucketPolicyOutput(args: GetBucketPolicyOutputArgs, opts?: InvokeOptions): Output<GetBucketPolicyResult>
Copy
def get_bucket_policy(bucket: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetBucketPolicyResult
def get_bucket_policy_output(bucket: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetBucketPolicyResult]
Copy
func LookupBucketPolicy(ctx *Context, args *LookupBucketPolicyArgs, opts ...InvokeOption) (*LookupBucketPolicyResult, error)
func LookupBucketPolicyOutput(ctx *Context, args *LookupBucketPolicyOutputArgs, opts ...InvokeOption) LookupBucketPolicyResultOutput
Copy

> Note: This function is named LookupBucketPolicy in the Go SDK.

public static class GetBucketPolicy 
{
    public static Task<GetBucketPolicyResult> InvokeAsync(GetBucketPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetBucketPolicyResult> Invoke(GetBucketPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetBucketPolicyResult> getBucketPolicy(GetBucketPolicyArgs args, InvokeOptions options)
public static Output<GetBucketPolicyResult> getBucketPolicy(GetBucketPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:s3outposts:getBucketPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Bucket This property is required. string
The Amazon Resource Name (ARN) of the specified bucket.
Bucket This property is required. string
The Amazon Resource Name (ARN) of the specified bucket.
bucket This property is required. String
The Amazon Resource Name (ARN) of the specified bucket.
bucket This property is required. string
The Amazon Resource Name (ARN) of the specified bucket.
bucket This property is required. str
The Amazon Resource Name (ARN) of the specified bucket.
bucket This property is required. String
The Amazon Resource Name (ARN) of the specified bucket.

getBucketPolicy Result

The following output properties are available:

PolicyDocument object

A policy document containing permissions to add to the specified bucket.

Search the CloudFormation User Guide for AWS::S3Outposts::BucketPolicy for more information about the expected schema for this property.

PolicyDocument interface{}

A policy document containing permissions to add to the specified bucket.

Search the CloudFormation User Guide for AWS::S3Outposts::BucketPolicy for more information about the expected schema for this property.

policyDocument Object

A policy document containing permissions to add to the specified bucket.

Search the CloudFormation User Guide for AWS::S3Outposts::BucketPolicy for more information about the expected schema for this property.

policyDocument any

A policy document containing permissions to add to the specified bucket.

Search the CloudFormation User Guide for AWS::S3Outposts::BucketPolicy for more information about the expected schema for this property.

policy_document Any

A policy document containing permissions to add to the specified bucket.

Search the CloudFormation User Guide for AWS::S3Outposts::BucketPolicy for more information about the expected schema for this property.

policyDocument Any

A policy document containing permissions to add to the specified bucket.

Search the CloudFormation User Guide for AWS::S3Outposts::BucketPolicy for more information about the expected schema for this property.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi