We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
The AWS::ApiGateway::Resource resource creates a resource in an API.
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(resource_id: Optional[str] = None,
rest_api_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResourceResult
def get_resource_output(resource_id: Optional[pulumi.Input[str]] = None,
rest_api_id: 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-native:apigateway:getResource
arguments:
# arguments dictionaryThe following arguments are supported:
- Resource
Id string - The ID for the resource. For example:
abc123. - Rest
Api stringId - The string identifier of the associated RestApi.
- Resource
Id string - The ID for the resource. For example:
abc123. - Rest
Api stringId - The string identifier of the associated RestApi.
- resource
Id String - The ID for the resource. For example:
abc123. - rest
Api StringId - The string identifier of the associated RestApi.
- resource
Id string - The ID for the resource. For example:
abc123. - rest
Api stringId - The string identifier of the associated RestApi.
- resource_
id str - The ID for the resource. For example:
abc123. - rest_
api_ strid - The string identifier of the associated RestApi.
- resource
Id String - The ID for the resource. For example:
abc123. - rest
Api StringId - The string identifier of the associated RestApi.
getResource Result
The following output properties are available:
- Resource
Id string - The ID for the resource. For example:
abc123.
- Resource
Id string - The ID for the resource. For example:
abc123.
- resource
Id String - The ID for the resource. For example:
abc123.
- resource
Id string - The ID for the resource. For example:
abc123.
- resource_
id str - The ID for the resource. For example:
abc123.
- resource
Id String - The ID for the resource. For example:
abc123.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
