Approval Rule Template
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());
}
}
Content copied to clipboard
Import
CodeCommit approval rule templates can be imported using the name
, e.g.
$ pulumi import aws:codecommit/approvalRuleTemplate:ApprovalRuleTemplate imported ExistingApprovalRuleTemplateName
Content copied to clipboard
*/
Properties
Link copied to clipboard
The ID of the approval rule template
Link copied to clipboard
The date the approval rule template was created, in RFC3339 format.
Link copied to clipboard
The description of the approval rule template. Maximum of 1000 characters.
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
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.