Set-VSStackPolicy

Set-VSStackPolicy

SYNOPSIS

Sets the Stack Policy.

SYNTAX

StackPolicyBody (Default)

Set-VSStackPolicy [-StackName <String>] [-StackPolicyBody] <String> [-ProfileName <String>]

Path

Set-VSStackPolicy [-StackName <String>] [-Path] <String> [-ProfileName <String>]

StackPolicyURL

Set-VSStackPolicy [-StackName <String>] [-StackPolicyURL] <String> [-ProfileName <String>]

PARAMETERS

-StackName

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

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StackPolicyBody

Structure containing the stack policy body.

Type: String
Parameter Sets: StackPolicyBody
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Path

Path to the local Stack Policy file

Type: String
Parameter Sets: Path
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-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.

Type: String
Parameter Sets: StackPolicyURL
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProfileName

The name of the configuration profile to deploy the stack with. Defaults to $env:AWS_PROFILE, if set.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: $env:AWS_PROFILE
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES