AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.lakeformation.getResource
Explore with Pulumi AI
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/v6/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,
opts: Optional[InvokeOptions] = None) -> GetResourceResult
def get_resource_output(arn: 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:lakeformation/getResource:getResource
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- ARN of the resource, an S3 path.
- Arn string
- ARN of the resource, an S3 path.
- arn String
- ARN of the resource, an S3 path.
- arn string
- ARN of the resource, an S3 path.
- arn str
- ARN of the resource, an S3 path.
- arn String
- ARN of the resource, an S3 path.
getResource Result
The following output properties are available:
- Arn string
- 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.
- Role
Arn string - Role that the resource was registered with.
- Arn string
- 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.
- Role
Arn string - Role that the resource was registered with.
- arn String
- 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.
- role
Arn String - Role that the resource was registered with.
- arn string
- 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.
- role
Arn string - Role that the resource was registered with.
- arn str
- 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.
- role_
arn str - Role that the resource was registered with.
- arn String
- 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.
- role
Arn String - Role that the resource was registered with.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.