1. Packages
  2. AWS Classic
  3. API Docs
  4. codecommit
  5. getApprovalRuleTemplate

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.codecommit.getApprovalRuleTemplate

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides details about a specific CodeCommit Approval Rule Template.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.codecommit.getApprovalRuleTemplate({
        name: "MyExampleApprovalRuleTemplate",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.codecommit.get_approval_rule_template(name="MyExampleApprovalRuleTemplate")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codecommit"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := codecommit.LookupApprovalRuleTemplate(ctx, &codecommit.LookupApprovalRuleTemplateArgs{
    			Name: "MyExampleApprovalRuleTemplate",
    		}, 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.CodeCommit.GetApprovalRuleTemplate.Invoke(new()
        {
            Name = "MyExampleApprovalRuleTemplate",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.codecommit.CodecommitFunctions;
    import com.pulumi.aws.codecommit.inputs.GetApprovalRuleTemplateArgs;
    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 = CodecommitFunctions.getApprovalRuleTemplate(GetApprovalRuleTemplateArgs.builder()
                .name("MyExampleApprovalRuleTemplate")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:codecommit:getApprovalRuleTemplate
          Arguments:
            name: MyExampleApprovalRuleTemplate
    

    Using getApprovalRuleTemplate

    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 getApprovalRuleTemplate(args: GetApprovalRuleTemplateArgs, opts?: InvokeOptions): Promise<GetApprovalRuleTemplateResult>
    function getApprovalRuleTemplateOutput(args: GetApprovalRuleTemplateOutputArgs, opts?: InvokeOptions): Output<GetApprovalRuleTemplateResult>
    def get_approval_rule_template(name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetApprovalRuleTemplateResult
    def get_approval_rule_template_output(name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetApprovalRuleTemplateResult]
    func LookupApprovalRuleTemplate(ctx *Context, args *LookupApprovalRuleTemplateArgs, opts ...InvokeOption) (*LookupApprovalRuleTemplateResult, error)
    func LookupApprovalRuleTemplateOutput(ctx *Context, args *LookupApprovalRuleTemplateOutputArgs, opts ...InvokeOption) LookupApprovalRuleTemplateResultOutput

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

    public static class GetApprovalRuleTemplate 
    {
        public static Task<GetApprovalRuleTemplateResult> InvokeAsync(GetApprovalRuleTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetApprovalRuleTemplateResult> Invoke(GetApprovalRuleTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApprovalRuleTemplateResult> getApprovalRuleTemplate(GetApprovalRuleTemplateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:codecommit/getApprovalRuleTemplate:getApprovalRuleTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name for the approval rule template. This needs to be less than 100 characters.
    Name string
    Name for the approval rule template. This needs to be less than 100 characters.
    name String
    Name for the approval rule template. This needs to be less than 100 characters.
    name string
    Name for the approval rule template. This needs to be less than 100 characters.
    name str
    Name for the approval rule template. This needs to be less than 100 characters.
    name String
    Name for the approval rule template. This needs to be less than 100 characters.

    getApprovalRuleTemplate Result

    The following output properties are available:

    ApprovalRuleTemplateId string
    The ID of the approval rule template.
    Content string
    Content of the approval rule template.
    CreationDate string
    Date the approval rule template was created, in RFC3339 format.
    Description string
    Description of the approval rule template.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedDate string
    Date the approval rule template was most recently changed, in RFC3339 format.
    LastModifiedUser string
    ARN of the user who made the most recent changes to the approval rule template.
    Name string
    RuleContentSha256 string
    SHA-256 hash signature for the content of the approval rule template.
    ApprovalRuleTemplateId string
    The ID of the approval rule template.
    Content string
    Content of the approval rule template.
    CreationDate string
    Date the approval rule template was created, in RFC3339 format.
    Description string
    Description of the approval rule template.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedDate string
    Date the approval rule template was most recently changed, in RFC3339 format.
    LastModifiedUser string
    ARN of the user who made the most recent changes to the approval rule template.
    Name string
    RuleContentSha256 string
    SHA-256 hash signature for the content of the approval rule template.
    approvalRuleTemplateId String
    The ID of the approval rule template.
    content String
    Content of the approval rule template.
    creationDate String
    Date the approval rule template was created, in RFC3339 format.
    description String
    Description of the approval rule template.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedDate String
    Date the approval rule template was most recently changed, in RFC3339 format.
    lastModifiedUser String
    ARN of the user who made the most recent changes to the approval rule template.
    name String
    ruleContentSha256 String
    SHA-256 hash signature for the content of the approval rule template.
    approvalRuleTemplateId string
    The ID of the approval rule template.
    content string
    Content of the approval rule template.
    creationDate string
    Date the approval rule template was created, in RFC3339 format.
    description string
    Description of the approval rule template.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedDate string
    Date the approval rule template was most recently changed, in RFC3339 format.
    lastModifiedUser string
    ARN of the user who made the most recent changes to the approval rule template.
    name string
    ruleContentSha256 string
    SHA-256 hash signature for the content of the approval rule template.
    approval_rule_template_id str
    The ID of the approval rule template.
    content str
    Content of the approval rule template.
    creation_date str
    Date the approval rule template was created, in RFC3339 format.
    description str
    Description of the approval rule template.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_date str
    Date the approval rule template was most recently changed, in RFC3339 format.
    last_modified_user str
    ARN of the user who made the most recent changes to the approval rule template.
    name str
    rule_content_sha256 str
    SHA-256 hash signature for the content of the approval rule template.
    approvalRuleTemplateId String
    The ID of the approval rule template.
    content String
    Content of the approval rule template.
    creationDate String
    Date the approval rule template was created, in RFC3339 format.
    description String
    Description of the approval rule template.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedDate String
    Date the approval rule template was most recently changed, in RFC3339 format.
    lastModifiedUser String
    ARN of the user who made the most recent changes to the approval rule template.
    name String
    ruleContentSha256 String
    SHA-256 hash signature for the content of the approval rule template.

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi