cloudformation_set_stack_policy: Sets a stack policy for a specified stack

Description Usage Arguments Value Request syntax

View source: R/cloudformation_operations.R

Description

Sets a stack policy for a specified stack.

Usage

1
2
cloudformation_set_stack_policy(StackName, StackPolicyBody,
  StackPolicyURL)

Arguments

StackName

[required] The name or unique stack ID that you want to associate a policy with.

StackPolicyBody

Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

StackPolicyURL

Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

Value

An empty list.

Request syntax

1
2
3
4
5
svc$set_stack_policy(
  StackName = "string",
  StackPolicyBody = "string",
  StackPolicyURL = "string"
)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.