NAME

Paws::IoT::CreatePolicyVersion - Arguments for method CreatePolicyVersion on Paws::IoT

DESCRIPTION

This class represents the parameters used for calling the method CreatePolicyVersion on the AWS IoT service. Use the attributes of this class as arguments to method CreatePolicyVersion.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePolicyVersion.

SYNOPSIS

my $iot = Paws->service('IoT');
my $CreatePolicyVersionResponse = $iot->CreatePolicyVersion(
  PolicyDocument => 'MyPolicyDocument',
  PolicyName     => 'MyPolicyName',
  SetAsDefault   => 1,                    # OPTIONAL
);

# Results:
my $IsDefaultVersion = $CreatePolicyVersionResponse->IsDefaultVersion;
my $PolicyArn        = $CreatePolicyVersionResponse->PolicyArn;
my $PolicyDocument   = $CreatePolicyVersionResponse->PolicyDocument;
my $PolicyVersionId  = $CreatePolicyVersionResponse->PolicyVersionId;

# Returns a L<Paws::IoT::CreatePolicyVersionResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/iot/CreatePolicyVersion

ATTRIBUTES

REQUIRED PolicyDocument => Str

The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.

REQUIRED PolicyName => Str

The policy name.

SetAsDefault => Bool

Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

SEE ALSO

This class forms part of Paws, documenting arguments for method CreatePolicyVersion in Paws::IoT

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues