blib/lib/Paws/ELB/CreateLoadBalancerPolicy.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ELB::CreateLoadBalancerPolicy;
3 use Moose;
4 has LoadBalancerName => (is => 'ro', isa => 'Str', required => 1);
5 has PolicyAttributes => (is => 'ro', isa => 'ArrayRef[Paws::ELB::PolicyAttribute]');
6 has PolicyName => (is => 'ro', isa => 'Str', required => 1);
7 has PolicyTypeName => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancerPolicy');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELB::CreateLoadBalancerPolicyOutput');
13 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancerPolicyResult');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::ELB::CreateLoadBalancerPolicy - Arguments for method CreateLoadBalancerPolicy on L<Paws::ELB>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateLoadBalancerPolicy on the
25 L<Elastic Load Balancing|Paws::ELB> service. Use the attributes of this class
26 as arguments to method CreateLoadBalancerPolicy.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLoadBalancerPolicy.
29  
30 =head1 SYNOPSIS
31  
32 my $elasticloadbalancing = Paws->service('ELB');
33 # To create a policy that enables Proxy Protocol on a load balancer
34 # This example creates a policy that enables Proxy Protocol on the specified
35 # load balancer.
36 my $CreateLoadBalancerPolicyOutput =
37 $elasticloadbalancing->CreateLoadBalancerPolicy(
38 'LoadBalancerName' => 'my-load-balancer',
39 'PolicyAttributes' => [
40  
41 {
42 'AttributeName' => 'ProxyProtocol',
43 'AttributeValue' => 'true'
44 }
45 ],
46 'PolicyName' => 'my-ProxyProtocol-policy',
47 'PolicyTypeName' => 'ProxyProtocolPolicyType'
48 );
49  
50 # To create a public key policy
51 # This example creates a public key policy.
52 my $CreateLoadBalancerPolicyOutput =
53 $elasticloadbalancing->CreateLoadBalancerPolicy(
54 'LoadBalancerName' => 'my-load-balancer',
55 'PolicyAttributes' => [
56  
57 {
58 'AttributeName' => 'PublicKey',
59 'AttributeValue' =>
60 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwAYUjnfyEyXr1pxjhFWBpMlggUcqoi3kl+dS74kj//c6x7ROtusUaeQCTgIUkayttRDWchuqo1pHC1u+n5xxXnBBe2ejbb2WRsKIQ5rXEeixsjFpFsojpSQKkzhVGI6mJVZBJDVKSHmswnwLBdofLhzvllpovBPTHe+o4haAWvDBALJU0pkSI1FecPHcs2hwxf14zHoXy1e2k36A64nXW43wtfx5qcVSIxtCEOjnYRg7RPvybaGfQ+v6Iaxb/+7J5kEvZhTFQId+bSiJImF1FSUT1W1xwzBZPUbcUkkXDj45vC2s3Z8E+Lk7a3uZhvsQHLZnrfuWjBWGWvZ/MhZYgEXAMPLE'
61 }
62 ],
63 'PolicyName' => 'my-PublicKey-policy',
64 'PolicyTypeName' => 'PublicKeyPolicyType'
65 );
66  
67 # To create a backend server authentication policy
68 # This example creates a backend server authentication policy that enables
69 # authentication on your backend instance using a public key policy.
70 my $CreateLoadBalancerPolicyOutput =
71 $elasticloadbalancing->CreateLoadBalancerPolicy(
72 'LoadBalancerName' => 'my-load-balancer',
73 'PolicyAttributes' => [
74  
75 {
76 'AttributeName' => 'PublicKeyPolicyName',
77 'AttributeValue' => 'my-PublicKey-policy'
78 }
79 ],
80 'PolicyName' => 'my-authentication-policy',
81 'PolicyTypeName' => 'BackendServerAuthenticationPolicyType'
82 );
83  
84  
85 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.
86 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/CreateLoadBalancerPolicy>
87  
88 =head1 ATTRIBUTES
89  
90  
91 =head2 B<REQUIRED> LoadBalancerName => Str
92  
93 The name of the load balancer.
94  
95  
96  
97 =head2 PolicyAttributes => ArrayRef[L<Paws::ELB::PolicyAttribute>]
98  
99 The policy attributes.
100  
101  
102  
103 =head2 B<REQUIRED> PolicyName => Str
104  
105 The name of the load balancer policy to be created. This name must be
106 unique within the set of policies for this load balancer.
107  
108  
109  
110 =head2 B<REQUIRED> PolicyTypeName => Str
111  
112 The name of the base policy type. To get the list of policy types, use
113 DescribeLoadBalancerPolicyTypes.
114  
115  
116  
117  
118 =head1 SEE ALSO
119  
120 This class forms part of L<Paws>, documenting arguments for method CreateLoadBalancerPolicy in L<Paws::ELB>
121  
122 =head1 BUGS and CONTRIBUTIONS
123  
124 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
125  
126 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
127  
128 =cut
129