AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.s3.getDirectoryBuckets
Explore with Pulumi AI
Lists Amazon S3 Express directory buckets.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.s3.getDirectoryBuckets({});
import pulumi
import pulumi_aws as aws
example = aws.s3.get_directory_buckets()
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := s3.GetDirectoryBuckets(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.S3.GetDirectoryBuckets.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.S3Functions;
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 = S3Functions.getDirectoryBuckets();
}
}
variables:
example:
fn::invoke:
Function: aws:s3:getDirectoryBuckets
Arguments: {}
Using getDirectoryBuckets
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 getDirectoryBuckets(opts?: InvokeOptions): Promise<GetDirectoryBucketsResult>
function getDirectoryBucketsOutput(opts?: InvokeOptions): Output<GetDirectoryBucketsResult>
def get_directory_buckets(opts: Optional[InvokeOptions] = None) -> GetDirectoryBucketsResult
def get_directory_buckets_output(opts: Optional[InvokeOptions] = None) -> Output[GetDirectoryBucketsResult]
func GetDirectoryBuckets(ctx *Context, opts ...InvokeOption) (*GetDirectoryBucketsResult, error)
func GetDirectoryBucketsOutput(ctx *Context, opts ...InvokeOption) GetDirectoryBucketsResultOutput
> Note: This function is named GetDirectoryBuckets
in the Go SDK.
public static class GetDirectoryBuckets
{
public static Task<GetDirectoryBucketsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetDirectoryBucketsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetDirectoryBucketsResult> getDirectoryBuckets(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:s3/getDirectoryBuckets:getDirectoryBuckets
arguments:
# arguments dictionary
getDirectoryBuckets Result
The following output properties are available:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.