AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.codecommit.getApprovalRuleTemplate
Explore with Pulumi AI
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)
public static Output<GetApprovalRuleTemplateResult> getApprovalRuleTemplate(GetApprovalRuleTemplateArgs args, InvokeOptions options)
fn::invoke:
  function: aws:codecommit/getApprovalRuleTemplate:getApprovalRuleTemplate
  arguments:
    # arguments dictionaryThe 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:
- ApprovalRule stringTemplate Id 
- 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.
- LastModified stringDate 
- Date the approval rule template was most recently changed, in RFC3339 format.
- LastModified stringUser 
- ARN of the user who made the most recent changes to the approval rule template.
- Name string
- RuleContent stringSha256 
- SHA-256 hash signature for the content of the approval rule template.
- ApprovalRule stringTemplate Id 
- 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.
- LastModified stringDate 
- Date the approval rule template was most recently changed, in RFC3339 format.
- LastModified stringUser 
- ARN of the user who made the most recent changes to the approval rule template.
- Name string
- RuleContent stringSha256 
- SHA-256 hash signature for the content of the approval rule template.
- approvalRule StringTemplate Id 
- 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.
- lastModified StringDate 
- Date the approval rule template was most recently changed, in RFC3339 format.
- lastModified StringUser 
- ARN of the user who made the most recent changes to the approval rule template.
- name String
- ruleContent StringSha256 
- SHA-256 hash signature for the content of the approval rule template.
- approvalRule stringTemplate Id 
- 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.
- lastModified stringDate 
- Date the approval rule template was most recently changed, in RFC3339 format.
- lastModified stringUser 
- ARN of the user who made the most recent changes to the approval rule template.
- name string
- ruleContent stringSha256 
- SHA-256 hash signature for the content of the approval rule template.
- approval_rule_ strtemplate_ id 
- 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_ strdate 
- Date the approval rule template was most recently changed, in RFC3339 format.
- last_modified_ struser 
- ARN of the user who made the most recent changes to the approval rule template.
- name str
- rule_content_ strsha256 
- SHA-256 hash signature for the content of the approval rule template.
- approvalRule StringTemplate Id 
- 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.
- lastModified StringDate 
- Date the approval rule template was most recently changed, in RFC3339 format.
- lastModified StringUser 
- ARN of the user who made the most recent changes to the approval rule template.
- name String
- ruleContent StringSha256 
- 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 awsTerraform Provider.