ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud
ionoscloud.getS3BucketPolicy
Explore with Pulumi AI
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getS3BucketPolicy({
    bucket: "example",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_s3_bucket_policy(bucket="example")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ionoscloud.LookupS3BucketPolicy(ctx, &ionoscloud.LookupS3BucketPolicyArgs{
			Bucket: "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() => 
{
    var example = Ionoscloud.GetS3BucketPolicy.Invoke(new()
    {
        Bucket = "example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetS3BucketPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = IonoscloudFunctions.getS3BucketPolicy(GetS3BucketPolicyArgs.builder()
            .bucket("example")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: ionoscloud:getS3BucketPolicy
      arguments:
        bucket: example
Using getS3BucketPolicy
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 getS3BucketPolicy(args: GetS3BucketPolicyArgs, opts?: InvokeOptions): Promise<GetS3BucketPolicyResult>
function getS3BucketPolicyOutput(args: GetS3BucketPolicyOutputArgs, opts?: InvokeOptions): Output<GetS3BucketPolicyResult>def get_s3_bucket_policy(bucket: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetS3BucketPolicyResult
def get_s3_bucket_policy_output(bucket: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetS3BucketPolicyResult]func LookupS3BucketPolicy(ctx *Context, args *LookupS3BucketPolicyArgs, opts ...InvokeOption) (*LookupS3BucketPolicyResult, error)
func LookupS3BucketPolicyOutput(ctx *Context, args *LookupS3BucketPolicyOutputArgs, opts ...InvokeOption) LookupS3BucketPolicyResultOutput> Note: This function is named LookupS3BucketPolicy in the Go SDK.
public static class GetS3BucketPolicy 
{
    public static Task<GetS3BucketPolicyResult> InvokeAsync(GetS3BucketPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetS3BucketPolicyResult> Invoke(GetS3BucketPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetS3BucketPolicyResult> getS3BucketPolicy(GetS3BucketPolicyArgs args, InvokeOptions options)
public static Output<GetS3BucketPolicyResult> getS3BucketPolicy(GetS3BucketPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: ionoscloud:index/getS3BucketPolicy:getS3BucketPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Bucket string
 - [string] The name of the bucket where the object will be stored.
 
- Bucket string
 - [string] The name of the bucket where the object will be stored.
 
- bucket String
 - [string] The name of the bucket where the object will be stored.
 
- bucket string
 - [string] The name of the bucket where the object will be stored.
 
- bucket str
 - [string] The name of the bucket where the object will be stored.
 
- bucket String
 - [string] The name of the bucket where the object will be stored.
 
getS3BucketPolicy Result
The following output properties are available:
Package Details
- Repository
 - ionoscloud ionos-cloud/terraform-provider-ionoscloud
 - License
 - Notes
 - This Pulumi package is based on the 
ionoscloudTerraform Provider. 
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud