AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getApprovalRuleTemplate

Provides details about a specific CodeCommit Approval Rule Template.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.CodeCommit.GetApprovalRuleTemplate.InvokeAsync(new Aws.CodeCommit.GetApprovalRuleTemplateArgs
        {
            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 java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(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 = pulumi.output(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

The name for the approval rule template. This needs to be less than 100 characters.

Name string

The name for the approval rule template. This needs to be less than 100 characters.

name String

The name for the approval rule template. This needs to be less than 100 characters.

name string

The name for the approval rule template. This needs to be less than 100 characters.

name str

The name for the approval rule template. This needs to be less than 100 characters.

name String

The 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

The content of the approval rule template.

CreationDate string

The date the approval rule template was created, in RFC3339 format.

Description string

The description of the approval rule template.

Id string

The provider-assigned unique ID for this managed resource.

LastModifiedDate string

The date the approval rule template was most recently changed, in RFC3339 format.

LastModifiedUser string

The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template.

Name string
RuleContentSha256 string

The SHA-256 hash signature for the content of the approval rule template.

ApprovalRuleTemplateId string

The ID of the approval rule template.

Content string

The content of the approval rule template.

CreationDate string

The date the approval rule template was created, in RFC3339 format.

Description string

The description of the approval rule template.

Id string

The provider-assigned unique ID for this managed resource.

LastModifiedDate string

The date the approval rule template was most recently changed, in RFC3339 format.

LastModifiedUser string

The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template.

Name string
RuleContentSha256 string

The SHA-256 hash signature for the content of the approval rule template.

approvalRuleTemplateId String

The ID of the approval rule template.

content String

The content of the approval rule template.

creationDate String

The date the approval rule template was created, in RFC3339 format.

description String

The description of the approval rule template.

id String

The provider-assigned unique ID for this managed resource.

lastModifiedDate String

The date the approval rule template was most recently changed, in RFC3339 format.

lastModifiedUser String

The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template.

name String
ruleContentSha256 String

The SHA-256 hash signature for the content of the approval rule template.

approvalRuleTemplateId string

The ID of the approval rule template.

content string

The content of the approval rule template.

creationDate string

The date the approval rule template was created, in RFC3339 format.

description string

The description of the approval rule template.

id string

The provider-assigned unique ID for this managed resource.

lastModifiedDate string

The date the approval rule template was most recently changed, in RFC3339 format.

lastModifiedUser string

The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template.

name string
ruleContentSha256 string

The 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

The content of the approval rule template.

creation_date str

The date the approval rule template was created, in RFC3339 format.

description str

The description of the approval rule template.

id str

The provider-assigned unique ID for this managed resource.

last_modified_date str

The date the approval rule template was most recently changed, in RFC3339 format.

last_modified_user str

The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template.

name str
rule_content_sha256 str

The SHA-256 hash signature for the content of the approval rule template.

approvalRuleTemplateId String

The ID of the approval rule template.

content String

The content of the approval rule template.

creationDate String

The date the approval rule template was created, in RFC3339 format.

description String

The description of the approval rule template.

id String

The provider-assigned unique ID for this managed resource.

lastModifiedDate String

The date the approval rule template was most recently changed, in RFC3339 format.

lastModifiedUser String

The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template.

name String
ruleContentSha256 String

The SHA-256 hash signature for the content of the approval rule template.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.