Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 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 dictionaryThe following arguments are supported:
getResource Result
The following output properties are available:
- Arn string
- Hybrid
Access boolEnabled - Flag to enable AWS LakeFormation hybrid access permission mode.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - Date and time the resource was last modified in RFC 3339 format.
- Region string
- Role
Arn string - Role that the resource was registered with.
- With
Federation bool - Whether the resource is a federated resource.
- With
Privileged boolAccess - Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
- Arn string
- Hybrid
Access boolEnabled - Flag to enable AWS LakeFormation hybrid access permission mode.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - Date and time the resource was last modified in RFC 3339 format.
- Region string
- Role
Arn string - Role that the resource was registered with.
- With
Federation bool - Whether the resource is a federated resource.
- With
Privileged boolAccess - Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
- arn String
- hybrid
Access BooleanEnabled - Flag to enable AWS LakeFormation hybrid access permission mode.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - Date and time the resource was last modified in RFC 3339 format.
- region String
- role
Arn String - Role that the resource was registered with.
- with
Federation Boolean - Whether the resource is a federated resource.
- with
Privileged BooleanAccess - Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
- arn string
- hybrid
Access booleanEnabled - Flag to enable AWS LakeFormation hybrid access permission mode.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified string - Date and time the resource was last modified in RFC 3339 format.
- region string
- role
Arn string - Role that the resource was registered with.
- with
Federation boolean - Whether the resource is a federated resource.
- with
Privileged booleanAccess - Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
- arn str
- hybrid_
access_ boolenabled - 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_ boolaccess - Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location.
- arn String
- hybrid
Access BooleanEnabled - Flag to enable AWS LakeFormation hybrid access permission mode.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - Date and time the resource was last modified in RFC 3339 format.
- region String
- role
Arn String - Role that the resource was registered with.
- with
Federation Boolean - Whether the resource is a federated resource.
- with
Privileged BooleanAccess - 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
awsTerraform Provider.
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
