ApprovalRuleTemplate

class ApprovalRuleTemplate : KotlinCustomResource

Provides a CodeCommit Approval Rule Template Resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codecommit.ApprovalRuleTemplate;
import com.pulumi.aws.codecommit.ApprovalRuleTemplateArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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) {
var example = new ApprovalRuleTemplate("example", ApprovalRuleTemplateArgs.builder()
.description("This is an example approval rule template")
.content(serializeJson(
jsonObject(
jsonProperty("Version", "2018-11-08"),
jsonProperty("DestinationReferences", jsonArray("refs/heads/master")),
jsonProperty("Statements", jsonArray(jsonObject(
jsonProperty("Type", "Approvers"),
jsonProperty("NumberOfApprovalsNeeded", 2),
jsonProperty("ApprovalPoolMembers", jsonArray("arn:aws:sts::123456789012:assumed-role/CodeCommitReview/*"))
)))
)))
.build());
}
}

Import

CodeCommit approval rule templates can be imported using the name, e.g.

$ pulumi import aws:codecommit/approvalRuleTemplate:ApprovalRuleTemplate imported ExistingApprovalRuleTemplateName

*/

Properties

Link copied to clipboard

The ID of the approval rule template

Link copied to clipboard
val content: Output<String>

The content of the approval rule template. Maximum of 3000 characters.

Link copied to clipboard
val creationDate: Output<String>

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

Link copied to clipboard
val description: Output<String>?

The description of the approval rule template. Maximum of 1000 characters.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val name: Output<String>

The name for the approval rule template. Maximum of 100 characters.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val urn: Output<String>