AWS v6.54.0 published on Friday, Sep 27, 2024 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)
// 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:
- Approval
Rule stringTemplate Id - The ID of the approval rule template.
- Content string
- Content of the approval rule template.
- Creation
Date 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.
- Last
Modified stringDate - Date the approval rule template was most recently changed, in RFC3339 format.
- Last
Modified stringUser - ARN of the user who made the most recent changes to the approval rule template.
- Name string
- Rule
Content stringSha256 - SHA-256 hash signature for the content of the approval rule template.
- Approval
Rule stringTemplate Id - The ID of the approval rule template.
- Content string
- Content of the approval rule template.
- Creation
Date 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.
- Last
Modified stringDate - Date the approval rule template was most recently changed, in RFC3339 format.
- Last
Modified stringUser - ARN of the user who made the most recent changes to the approval rule template.
- Name string
- Rule
Content stringSha256 - SHA-256 hash signature for the content of the approval rule template.
- approval
Rule StringTemplate Id - The ID of the approval rule template.
- content String
- Content of the approval rule template.
- creation
Date 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.
- last
Modified StringDate - Date the approval rule template was most recently changed, in RFC3339 format.
- last
Modified StringUser - ARN of the user who made the most recent changes to the approval rule template.
- name String
- rule
Content StringSha256 - SHA-256 hash signature for the content of the approval rule template.
- approval
Rule stringTemplate Id - The ID of the approval rule template.
- content string
- Content of the approval rule template.
- creation
Date 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.
- last
Modified stringDate - Date the approval rule template was most recently changed, in RFC3339 format.
- last
Modified stringUser - ARN of the user who made the most recent changes to the approval rule template.
- name string
- rule
Content 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.
- approval
Rule StringTemplate Id - The ID of the approval rule template.
- content String
- Content of the approval rule template.
- creation
Date 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.
- last
Modified StringDate - Date the approval rule template was most recently changed, in RFC3339 format.
- last
Modified StringUser - ARN of the user who made the most recent changes to the approval rule template.
- name String
- rule
Content 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
aws
Terraform Provider.