blib/lib/Paws/RedShift/CreateEndpointAccess.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::RedShift::CreateEndpointAccess;
3 use Moose;
4 has ClusterIdentifier => (is => 'ro', isa => 'Str');
5 has EndpointName => (is => 'ro', isa => 'Str', required => 1);
6 has ResourceOwner => (is => 'ro', isa => 'Str');
7 has SubnetGroupName => (is => 'ro', isa => 'Str', required => 1);
8 has VpcSecurityGroupIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateEndpointAccess');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RedShift::EndpointAccess');
14 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateEndpointAccessResult');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::RedShift::CreateEndpointAccess - Arguments for method CreateEndpointAccess on L<Paws::RedShift>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateEndpointAccess on the
26 L<Amazon Redshift|Paws::RedShift> service. Use the attributes of this class
27 as arguments to method CreateEndpointAccess.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEndpointAccess.
30  
31 =head1 SYNOPSIS
32  
33 my $redshift = Paws->service('RedShift');
34 my $EndpointAccess = $redshift->CreateEndpointAccess(
35 EndpointName => 'MyString',
36 SubnetGroupName => 'MyString',
37 ClusterIdentifier => 'MyString', # OPTIONAL
38 ResourceOwner => 'MyString', # OPTIONAL
39 VpcSecurityGroupIds => [
40 'MyString', ... # max: 2147483647
41 ], # OPTIONAL
42 );
43  
44 # Results:
45 my $Address = $EndpointAccess->Address;
46 my $ClusterIdentifier = $EndpointAccess->ClusterIdentifier;
47 my $EndpointCreateTime = $EndpointAccess->EndpointCreateTime;
48 my $EndpointName = $EndpointAccess->EndpointName;
49 my $EndpointStatus = $EndpointAccess->EndpointStatus;
50 my $Port = $EndpointAccess->Port;
51 my $ResourceOwner = $EndpointAccess->ResourceOwner;
52 my $SubnetGroupName = $EndpointAccess->SubnetGroupName;
53 my $VpcEndpoint = $EndpointAccess->VpcEndpoint;
54 my $VpcSecurityGroups = $EndpointAccess->VpcSecurityGroups;
55  
56 # Returns a L<Paws::RedShift::EndpointAccess> object.
57  
58 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.
59 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/redshift/CreateEndpointAccess>
60  
61 =head1 ATTRIBUTES
62  
63  
64 =head2 ClusterIdentifier => Str
65  
66 The cluster identifier of the cluster to access.
67  
68  
69  
70 =head2 B<REQUIRED> EndpointName => Str
71  
72 The Redshift-managed VPC endpoint name.
73  
74 An endpoint name must contain 1-30 characters. Valid characters are
75 A-Z, a-z, 0-9, and hyphen(-). The first character must be a letter. The
76 name can't contain two consecutive hyphens or end with a hyphen.
77  
78  
79  
80 =head2 ResourceOwner => Str
81  
82 The AWS account ID of the owner of the cluster. This is only required
83 if the cluster is in another AWS account.
84  
85  
86  
87 =head2 B<REQUIRED> SubnetGroupName => Str
88  
89 The subnet group from which Amazon Redshift chooses the subnet to
90 deploy the endpoint.
91  
92  
93  
94 =head2 VpcSecurityGroupIds => ArrayRef[Str|Undef]
95  
96 The security group that defines the ports, protocols, and sources for
97 inbound traffic that you are authorizing into your endpoint.
98  
99  
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, documenting arguments for method CreateEndpointAccess in L<Paws::RedShift>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113