File Coverage

blib/lib/Cfn/Resource/AWS/Elasticsearch/Domain.pm
Criterion Covered Total %
statement 68 68 100.0
branch n/a
condition n/a
subroutine 24 24 100.0
pod 0 2 0.0
total 92 94 97.8


line stmt bran cond sub pod time code
1             # AWS::Elasticsearch::Domain generated from spec 9.1.0
2 2     2   1451 use Moose::Util::TypeConstraints;
  2         7  
  2         22  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Elasticsearch::Domain->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Elasticsearch::Domain {
9 2     2   4582 use Moose;
  2         9  
  2         18  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ 'Arn','DomainArn','DomainEndpoint' ]
15             }
16             sub supported_regions {
17 1     1 0 1228 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ZoneAwarenessConfig',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ZoneAwarenessConfig',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ZoneAwarenessConfigValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ZoneAwarenessConfigValue {
37 2     2   14488 use Moose;
  2         6  
  2         15  
38 2     2   13011 use MooseX::StrictConstructor;
  2         7  
  2         21  
39             extends 'Cfn::Value::TypedValue';
40            
41             has AvailabilityZoneCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43              
44             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::VPCOptions',
45             as 'Cfn::Value';
46              
47             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::VPCOptions',
48             from 'HashRef',
49             via {
50             if (my $f = Cfn::TypeLibrary::try_function($_)) {
51             return $f
52             } else {
53             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::VPCOptionsValue->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::VPCOptionsValue {
58 2     2   7210 use Moose;
  2         6  
  2         12  
59 2     2   13232 use MooseX::StrictConstructor;
  2         7  
  2         10  
60             extends 'Cfn::Value::TypedValue';
61            
62             has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63             has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::SnapshotOptions',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::SnapshotOptions',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::SnapshotOptionsValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::SnapshotOptionsValue {
80 2     2   6756 use Moose;
  2         6  
  2         12  
81 2     2   13070 use MooseX::StrictConstructor;
  2         7  
  2         15  
82             extends 'Cfn::Value::TypedValue';
83            
84             has AutomatedSnapshotStartHour => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             }
86              
87             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::NodeToNodeEncryptionOptions',
88             as 'Cfn::Value';
89              
90             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::NodeToNodeEncryptionOptions',
91             from 'HashRef',
92             via {
93             if (my $f = Cfn::TypeLibrary::try_function($_)) {
94             return $f
95             } else {
96             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::NodeToNodeEncryptionOptionsValue->new( %$_ );
97             }
98             };
99              
100             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::NodeToNodeEncryptionOptionsValue {
101 2     2   6667 use Moose;
  2         8  
  2         12  
102 2     2   12977 use MooseX::StrictConstructor;
  2         7  
  2         13  
103             extends 'Cfn::Value::TypedValue';
104            
105             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
106             }
107              
108             subtype 'MapOfCfn::Resource::Properties::AWS::Elasticsearch::Domain::LogPublishingOption',
109             as 'Cfn::Value',
110             where { $_->isa('Cfn::Value::Hash') or $_->isa('Cfn::Value::Function') },
111             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
112              
113             coerce 'MapOfCfn::Resource::Properties::AWS::Elasticsearch::Domain::LogPublishingOption',
114             from 'HashRef',
115             via {
116             my $arg = $_;
117             if (my $f = Cfn::TypeLibrary::try_function($arg)) {
118             return $f
119             } else {
120             Cfn::Value::Hash->new(Value => {
121             map { $_ => Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Elasticsearch::Domain::LogPublishingOption')->coerce($arg->{$_}) } keys %$arg
122             });
123             }
124             };
125              
126             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::LogPublishingOption',
127             as 'Cfn::Value';
128              
129             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::LogPublishingOption',
130             from 'HashRef',
131             via {
132             if (my $f = Cfn::TypeLibrary::try_function($_)) {
133             return $f
134             } else {
135             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::LogPublishingOptionValue->new( %$_ );
136             }
137             };
138              
139             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::LogPublishingOptionValue {
140 2     2   7029 use Moose;
  2         5  
  2         20  
141 2     2   13011 use MooseX::StrictConstructor;
  2         7  
  2         12  
142             extends 'Cfn::Value::TypedValue';
143            
144             has CloudWatchLogsLogGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
145             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
146             }
147              
148             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EncryptionAtRestOptions',
149             as 'Cfn::Value';
150              
151             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EncryptionAtRestOptions',
152             from 'HashRef',
153             via {
154             if (my $f = Cfn::TypeLibrary::try_function($_)) {
155             return $f
156             } else {
157             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EncryptionAtRestOptionsValue->new( %$_ );
158             }
159             };
160              
161             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EncryptionAtRestOptionsValue {
162 2     2   6844 use Moose;
  2         8  
  2         11  
163 2     2   13419 use MooseX::StrictConstructor;
  2         6  
  2         11  
164             extends 'Cfn::Value::TypedValue';
165            
166             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
167             has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
168             }
169              
170             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ElasticsearchClusterConfig',
171             as 'Cfn::Value';
172              
173             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ElasticsearchClusterConfig',
174             from 'HashRef',
175             via {
176             if (my $f = Cfn::TypeLibrary::try_function($_)) {
177             return $f
178             } else {
179             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ElasticsearchClusterConfigValue->new( %$_ );
180             }
181             };
182              
183             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ElasticsearchClusterConfigValue {
184 2     2   6802 use Moose;
  2         7  
  2         13  
185 2     2   13090 use MooseX::StrictConstructor;
  2         5  
  2         10  
186             extends 'Cfn::Value::TypedValue';
187            
188             has DedicatedMasterCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
189             has DedicatedMasterEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
190             has DedicatedMasterType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
191             has InstanceCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
192             has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193             has ZoneAwarenessConfig => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ZoneAwarenessConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
194             has ZoneAwarenessEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195             }
196              
197             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EBSOptions',
198             as 'Cfn::Value';
199              
200             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EBSOptions',
201             from 'HashRef',
202             via {
203             if (my $f = Cfn::TypeLibrary::try_function($_)) {
204             return $f
205             } else {
206             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EBSOptionsValue->new( %$_ );
207             }
208             };
209              
210             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EBSOptionsValue {
211 2     2   6917 use Moose;
  2         5  
  2         12  
212 2     2   13110 use MooseX::StrictConstructor;
  2         7  
  2         12  
213             extends 'Cfn::Value::TypedValue';
214            
215             has EBSEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
216             has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217             has VolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218             has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219             }
220              
221             subtype 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::CognitoOptions',
222             as 'Cfn::Value';
223              
224             coerce 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::CognitoOptions',
225             from 'HashRef',
226             via {
227             if (my $f = Cfn::TypeLibrary::try_function($_)) {
228             return $f
229             } else {
230             return Cfn::Resource::Properties::AWS::Elasticsearch::Domain::CognitoOptionsValue->new( %$_ );
231             }
232             };
233              
234             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain::CognitoOptionsValue {
235 2     2   6732 use Moose;
  2         5  
  2         13  
236 2     2   13276 use MooseX::StrictConstructor;
  2         5  
  2         9  
237             extends 'Cfn::Value::TypedValue';
238            
239             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240             has IdentityPoolId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242             has UserPoolId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
243             }
244              
245             package Cfn::Resource::Properties::AWS::Elasticsearch::Domain {
246 2     2   6551 use Moose;
  2         4  
  2         12  
247 2     2   13432 use MooseX::StrictConstructor;
  2         8  
  2         11  
248             extends 'Cfn::Resource::Properties';
249            
250             has AccessPolicies => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
251             has AdvancedOptions => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
252             has CognitoOptions => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::CognitoOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
253             has DomainName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
254             has EBSOptions => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EBSOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
255             has ElasticsearchClusterConfig => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::ElasticsearchClusterConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
256             has ElasticsearchVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional');
257             has EncryptionAtRestOptions => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::EncryptionAtRestOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
258             has LogPublishingOptions => (isa => 'MapOfCfn::Resource::Properties::AWS::Elasticsearch::Domain::LogPublishingOption', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
259             has NodeToNodeEncryptionOptions => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::NodeToNodeEncryptionOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
260             has SnapshotOptions => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::SnapshotOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
261             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
262             has VPCOptions => (isa => 'Cfn::Resource::Properties::AWS::Elasticsearch::Domain::VPCOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
263             }
264              
265             1;