/** * <p> * Location of a file containing the updated stack policy. The URL must point to a policy (max size: 16KB) located * in an S3 bucket in the same region as the stack. You can specify either the <code>StackPolicyBody</code> or the * <code>StackPolicyURL</code> parameter, but not both. * </p> * <p> * You might update the stack policy, for example, in order to protect a new resource that you created during a * stack update. If you do not specify a stack policy, the current policy that is associated with the stack is * unchanged. * </p> * * @param stackPolicyURL * Location of a file containing the updated stack policy. The URL must point to a policy (max size: 16KB) * located in an S3 bucket in the same region as the stack. You can specify either the * <code>StackPolicyBody</code> or the <code>StackPolicyURL</code> parameter, but not both.</p> * <p> * You might update the stack policy, for example, in order to protect a new resource that you created during * a stack update. If you do not specify a stack policy, the current policy that is associated with the stack * is unchanged. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateStackRequest withStackPolicyURL(String stackPolicyURL) { setStackPolicyURL(stackPolicyURL); return this; }
/** * <p> * Location of a file containing the updated stack policy. The URL must point to a policy (max size: 16KB) located * in an S3 bucket in the same region as the stack. You can specify either the <code>StackPolicyBody</code> or the * <code>StackPolicyURL</code> parameter, but not both. * </p> * <p> * You might update the stack policy, for example, in order to protect a new resource that you created during a * stack update. If you do not specify a stack policy, the current policy that is associated with the stack is * unchanged. * </p> * * @param stackPolicyURL * Location of a file containing the updated stack policy. The URL must point to a policy (max size: 16KB) * located in an S3 bucket in the same region as the stack. You can specify either the * <code>StackPolicyBody</code> or the <code>StackPolicyURL</code> parameter, but not both.</p> * <p> * You might update the stack policy, for example, in order to protect a new resource that you created during * a stack update. If you do not specify a stack policy, the current policy that is associated with the stack * is unchanged. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateStackRequest withStackPolicyURL(String stackPolicyURL) { setStackPolicyURL(stackPolicyURL); return this; }
req.setStackPolicyURL(cfnStackPolicyUrl);