Paws::Organizations::CreatePolicy - Arguments for method CreatePolicy on Paws::Organizations
This class represents the parameters used for calling the method CreatePolicy on the AWS Organizations service. Use the attributes of this class as arguments to method CreatePolicy.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePolicy.
my $organizations = Paws->service('Organizations'); my $CreatePolicyResponse = $organizations->CreatePolicy( Content => 'MyPolicyContent', Description => 'MyPolicyDescription', Name => 'MyPolicyName', Type => 'SERVICE_CONTROL_POLICY', ); # Results: my $Policy = $CreatePolicyResponse->Policy; # Returns a L<Paws::Organizations::CreatePolicyResponse> 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/organizations/CreatePolicy
The policy content to add to the new policy. For example, you could create a service control policy (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html) (SCP) that specifies the permissions that administrators in attached accounts can delegate to their users, groups, and roles. The string for this SCP must be JSON text. For more information about the SCP syntax, see Service Control Policy Syntax (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) in the AWS Organizations User Guide.
An optional description to assign to the policy.
The friendly name to assign to the policy.
The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate this parameter is a string of any of the characters in the ASCII character range.
The type of policy to create.
Valid values are: "SERVICE_CONTROL_POLICY", "TAG_POLICY"
"SERVICE_CONTROL_POLICY"
"TAG_POLICY"
This class forms part of Paws, documenting arguments for method CreatePolicy in Paws::Organizations
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
To install Paws::SDK::Config, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws::SDK::Config
CPAN shell
perl -MCPAN -e shell install Paws::SDK::Config
For more information on module installation, please visit the detailed CPAN module installation guide.