aws logo
AWS Classic v5.34.0, Mar 30 23

aws.codecommit.getApprovalRuleTemplate

Provides details about a specific CodeCommit Approval Rule Template.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.CodeCommit.GetApprovalRuleTemplate.Invoke(new()
    {
        Name = "MyExampleApprovalRuleTemplate",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
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());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.codecommit.get_approval_rule_template(name="MyExampleApprovalRuleTemplate")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.codecommit.getApprovalRuleTemplate({
    name: "MyExampleApprovalRuleTemplate",
});
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.