1. Packages
  2. AWS
  3. API Docs
  4. lakeformation
  5. getResource
AWS v7.1.0 published on Monday, Jul 21, 2025 by Pulumi

aws.lakeformation.getResource

Explore with Pulumi AI

aws logo
AWS v7.1.0 published on Monday, Jul 21, 2025 by Pulumi

    Provides details about a Lake Formation resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.lakeformation.getResource({
        arn: "arn:aws:s3:::tf-acc-test-9151654063908211878",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.lakeformation.get_resource(arn="arn:aws:s3:::tf-acc-test-9151654063908211878")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lakeformation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := lakeformation.LookupResource(ctx, &lakeformation.LookupResourceArgs{
    			Arn: "arn:aws:s3:::tf-acc-test-9151654063908211878",
    		}, 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.LakeFormation.GetResource.Invoke(new()
        {
            Arn = "arn:aws:s3:::tf-acc-test-9151654063908211878",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.lakeformation.LakeformationFunctions;
    import com.pulumi.aws.lakeformation.inputs.GetResourceArgs;
    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 = LakeformationFunctions.getResource(GetResourceArgs.builder()
                .arn("arn:aws:s3:::tf-acc-test-9151654063908211878")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:lakeformation:getResource
          arguments:
            arn: arn:aws:s3:::tf-acc-test-9151654063908211878
    

    Using getResource

    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 getResource(args: GetResourceArgs, opts?: InvokeOptions): Promise<GetResourceResult>
    function getResourceOutput(args: GetResourceOutputArgs, opts?: InvokeOptions): Output<GetResourceResult>
    def get_resource(arn: Optional[str] = None,
                     region: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetResourceResult
    def get_resource_output(arn: Optional[pulumi.Input[str]] = None,
                     region: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetResourceResult]
    func LookupResource(ctx *Context, args *LookupResourceArgs, opts ...InvokeOption) (*LookupResourceResult, error)
    func LookupResourceOutput(ctx *Context, args *LookupResourceOutputArgs, opts ...InvokeOption) LookupResourceResultOutput

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

    public static class GetResource 
    {
        public static Task<GetResourceResult> InvokeAsync(GetResourceArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceResult> Invoke(GetResourceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceResult> getResource(GetResourceArgs args, InvokeOptions options)
    public static Output<GetResourceResult> getResource(GetResourceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:lakeformation/getResource:getResource
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Arn string
    ARN of the resource, an S3 path.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Arn string
    ARN of the resource, an S3 path.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn String
    ARN of the resource, an S3 path.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn string
    ARN of the resource, an S3 path.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn str
    ARN of the resource, an S3 path.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    arn String
    ARN of the resource, an S3 path.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getResource Result

    The following output properties are available:

    Arn string
    HybridAccessEnabled bool
    Flag to enable AWS LakeFormation hybrid access permission mode.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    Date and time the resource was last modified in RFC 3339 format.
    Region string
    RoleArn string
    Role that the resource was registered with.
    WithFederation bool
    Whether the resource is a federated resource.
    WithPrivilegedAccess bool
    Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
    Arn string
    HybridAccessEnabled bool
    Flag to enable AWS LakeFormation hybrid access permission mode.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    Date and time the resource was last modified in RFC 3339 format.
    Region string
    RoleArn string
    Role that the resource was registered with.
    WithFederation bool
    Whether the resource is a federated resource.
    WithPrivilegedAccess bool
    Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
    arn String
    hybridAccessEnabled Boolean
    Flag to enable AWS LakeFormation hybrid access permission mode.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    Date and time the resource was last modified in RFC 3339 format.
    region String
    roleArn String
    Role that the resource was registered with.
    withFederation Boolean
    Whether the resource is a federated resource.
    withPrivilegedAccess Boolean
    Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
    arn string
    hybridAccessEnabled boolean
    Flag to enable AWS LakeFormation hybrid access permission mode.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModified string
    Date and time the resource was last modified in RFC 3339 format.
    region string
    roleArn string
    Role that the resource was registered with.
    withFederation boolean
    Whether the resource is a federated resource.
    withPrivilegedAccess boolean
    Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
    arn str
    hybrid_access_enabled bool
    Flag to enable AWS LakeFormation hybrid access permission mode.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified str
    Date and time the resource was last modified in RFC 3339 format.
    region str
    role_arn str
    Role that the resource was registered with.
    with_federation bool
    Whether the resource is a federated resource.
    with_privileged_access bool
    Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
    arn String
    hybridAccessEnabled Boolean
    Flag to enable AWS LakeFormation hybrid access permission mode.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    Date and time the resource was last modified in RFC 3339 format.
    region String
    roleArn String
    Role that the resource was registered with.
    withFederation Boolean
    Whether the resource is a federated resource.
    withPrivilegedAccess Boolean
    Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.1.0 published on Monday, Jul 21, 2025 by Pulumi