1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getSnapshotBlockPublicAccess

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

AWS Cloud Control v1.0.1 published on Tuesday, Oct 1, 2024 by Pulumi

aws-native.ec2.getSnapshotBlockPublicAccess

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.0.1 published on Tuesday, Oct 1, 2024 by Pulumi

    Resource Type definition for AWS::EC2::SnapshotBlockPublicAccess

    Using getSnapshotBlockPublicAccess

    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 getSnapshotBlockPublicAccess(args: GetSnapshotBlockPublicAccessArgs, opts?: InvokeOptions): Promise<GetSnapshotBlockPublicAccessResult>
    function getSnapshotBlockPublicAccessOutput(args: GetSnapshotBlockPublicAccessOutputArgs, opts?: InvokeOptions): Output<GetSnapshotBlockPublicAccessResult>
    def get_snapshot_block_public_access(account_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetSnapshotBlockPublicAccessResult
    def get_snapshot_block_public_access_output(account_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotBlockPublicAccessResult]
    func LookupSnapshotBlockPublicAccess(ctx *Context, args *LookupSnapshotBlockPublicAccessArgs, opts ...InvokeOption) (*LookupSnapshotBlockPublicAccessResult, error)
    func LookupSnapshotBlockPublicAccessOutput(ctx *Context, args *LookupSnapshotBlockPublicAccessOutputArgs, opts ...InvokeOption) LookupSnapshotBlockPublicAccessResultOutput

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

    public static class GetSnapshotBlockPublicAccess 
    {
        public static Task<GetSnapshotBlockPublicAccessResult> InvokeAsync(GetSnapshotBlockPublicAccessArgs args, InvokeOptions? opts = null)
        public static Output<GetSnapshotBlockPublicAccessResult> Invoke(GetSnapshotBlockPublicAccessInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSnapshotBlockPublicAccessResult> getSnapshotBlockPublicAccess(GetSnapshotBlockPublicAccessArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getSnapshotBlockPublicAccess
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    The identifier for the specified AWS account.
    AccountId string
    The identifier for the specified AWS account.
    accountId String
    The identifier for the specified AWS account.
    accountId string
    The identifier for the specified AWS account.
    account_id str
    The identifier for the specified AWS account.
    accountId String
    The identifier for the specified AWS account.

    getSnapshotBlockPublicAccess Result

    The following output properties are available:

    AccountId string
    The identifier for the specified AWS account.
    State Pulumi.AwsNative.Ec2.SnapshotBlockPublicAccessState
    The state of EBS Snapshot Block Public Access.
    AccountId string
    The identifier for the specified AWS account.
    State SnapshotBlockPublicAccessStateEnum
    The state of EBS Snapshot Block Public Access.
    accountId String
    The identifier for the specified AWS account.
    state SnapshotBlockPublicAccessState
    The state of EBS Snapshot Block Public Access.
    accountId string
    The identifier for the specified AWS account.
    state SnapshotBlockPublicAccessState
    The state of EBS Snapshot Block Public Access.
    account_id str
    The identifier for the specified AWS account.
    state SnapshotBlockPublicAccessState
    The state of EBS Snapshot Block Public Access.
    accountId String
    The identifier for the specified AWS account.
    state "block-all-sharing" | "block-new-sharing"
    The state of EBS Snapshot Block Public Access.

    Supporting Types

    SnapshotBlockPublicAccessState

    Package Details

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

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

    AWS Cloud Control v1.0.1 published on Tuesday, Oct 1, 2024 by Pulumi