1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. arnBuild
Viewing docs for AWS v7.38.0
published on Tuesday, Jul 21, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.38.0
published on Tuesday, Jul 21, 2026 by Pulumi

    Builds an ARN from its constituent parts.

    See the AWS documentation for additional information on Amazon Resource Names.

    Signature

    arn_build(partition string, service string, region string, account_id string, resource string) string
    

    Using arnBuild

    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 arnBuild(args: ArnBuildArgs, opts?: InvokeOptions): Promise<ArnBuildResult>
    function arnBuildOutput(args: ArnBuildOutputArgs, opts?: InvokeOptions): Output<ArnBuildResult>
    def arn_build(partition: Optional[str] = None,
                  service: Optional[str] = None,
                  region: Optional[str] = None,
                  account_id: Optional[str] = None,
                  resource: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> ArnBuildResult
    def arn_build_output(partition: pulumi.Input[Optional[str]] = None,
                  service: pulumi.Input[Optional[str]] = None,
                  region: pulumi.Input[Optional[str]] = None,
                  account_id: pulumi.Input[Optional[str]] = None,
                  resource: pulumi.Input[Optional[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[ArnBuildResult]
    func ArnBuild(ctx *Context, args *ArnBuildArgs, opts ...InvokeOption) (*ArnBuildResult, error)
    func ArnBuildOutput(ctx *Context, args *ArnBuildOutputArgs, opts ...InvokeOption) ArnBuildResultOutput

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

    public static class ArnBuild 
    {
        public static Task<ArnBuildResult> InvokeAsync(ArnBuildArgs args, InvokeOptions? opts = null)
        public static Output<ArnBuildResult> Invoke(ArnBuildInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ArnBuildResult> arnBuild(ArnBuildArgs args, InvokeOptions options)
    public static Output<ArnBuildResult> arnBuild(ArnBuildArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:index/arnBuild:arnBuild
      arguments:
        # arguments dictionary
    data "aws_arn_build" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    AWS account identifier
    Partition string
    Partition in which the resource is located
    Region string
    Region code
    Resource string
    Resource section, typically composed of a resource type and identifier
    Service string
    Service namespace
    AccountId string
    AWS account identifier
    Partition string
    Partition in which the resource is located
    Region string
    Region code
    Resource string
    Resource section, typically composed of a resource type and identifier
    Service string
    Service namespace
    account_id string
    AWS account identifier
    partition string
    Partition in which the resource is located
    region string
    Region code
    resource string
    Resource section, typically composed of a resource type and identifier
    service string
    Service namespace
    accountId String
    AWS account identifier
    partition String
    Partition in which the resource is located
    region String
    Region code
    resource String
    Resource section, typically composed of a resource type and identifier
    service String
    Service namespace
    accountId string
    AWS account identifier
    partition string
    Partition in which the resource is located
    region string
    Region code
    resource string
    Resource section, typically composed of a resource type and identifier
    service string
    Service namespace
    account_id str
    AWS account identifier
    partition str
    Partition in which the resource is located
    region str
    Region code
    resource str
    Resource section, typically composed of a resource type and identifier
    service str
    Service namespace
    accountId String
    AWS account identifier
    partition String
    Partition in which the resource is located
    region String
    Region code
    resource String
    Resource section, typically composed of a resource type and identifier
    service String
    Service namespace

    arnBuild Result

    The following output properties are available:

    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
    Viewing docs for AWS v7.38.0
    published on Tuesday, Jul 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial