blib/lib/Paws/AppRunner/CreateService.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AppRunner::CreateService;
3 use Moose;
4 has AutoScalingConfigurationArn => (is => 'ro', isa => 'Str');
5 has EncryptionConfiguration => (is => 'ro', isa => 'Paws::AppRunner::EncryptionConfiguration');
6 has HealthCheckConfiguration => (is => 'ro', isa => 'Paws::AppRunner::HealthCheckConfiguration');
7 has InstanceConfiguration => (is => 'ro', isa => 'Paws::AppRunner::InstanceConfiguration');
8 has ServiceName => (is => 'ro', isa => 'Str', required => 1);
9 has SourceConfiguration => (is => 'ro', isa => 'Paws::AppRunner::SourceConfiguration', required => 1);
10 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::AppRunner::Tag]');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateService');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppRunner::CreateServiceResponse');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::AppRunner::CreateService - Arguments for method CreateService on L<Paws::AppRunner>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateService on the
28 L<AWS App Runner|Paws::AppRunner> service. Use the attributes of this class
29 as arguments to method CreateService.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateService.
32  
33 =head1 SYNOPSIS
34  
35 my $apprunner = Paws->service('AppRunner');
36 my $CreateServiceResponse = $apprunner->CreateService(
37 ServiceName => 'MyServiceName',
38 SourceConfiguration => {
39 AuthenticationConfiguration => {
40 AccessRoleArn => 'MyRoleArn', # min: 29, max: 102; OPTIONAL
41 ConnectionArn =>
42 'MyAppRunnerResourceArn', # min: 1, max: 1011; OPTIONAL
43 }, # OPTIONAL
44 AutoDeploymentsEnabled => 1, # OPTIONAL
45 CodeRepository => {
46 RepositoryUrl => 'MyString', # max: 51200
47 SourceCodeVersion => {
48 Type => 'BRANCH', # values: BRANCH
49 Value => 'MyString', # max: 51200
50  
51 },
52 CodeConfiguration => {
53 ConfigurationSource => 'REPOSITORY', # values: REPOSITORY, API
54 CodeConfigurationValues => {
55 Runtime => 'PYTHON_3', # values: PYTHON_3, NODEJS_12
56 BuildCommand => 'MyBuildCommand', # OPTIONAL
57 Port => 'MyString', # max: 51200
58 RuntimeEnvironmentVariables => {
59 'MyRuntimeEnvironmentVariablesKey' =>
60 'MyRuntimeEnvironmentVariablesValue',
61 }, # OPTIONAL
62 StartCommand => 'MyStartCommand', # OPTIONAL
63 }, # OPTIONAL
64 }, # OPTIONAL
65 }, # OPTIONAL
66 ImageRepository => {
67 ImageIdentifier => 'MyImageIdentifier', # min: 1, max: 1024
68 ImageRepositoryType => 'ECR', # values: ECR, ECR_PUBLIC
69 ImageConfiguration => {
70 Port => 'MyString', # max: 51200
71 RuntimeEnvironmentVariables => {
72 'MyRuntimeEnvironmentVariablesKey' =>
73 'MyRuntimeEnvironmentVariablesValue',
74 }, # OPTIONAL
75 StartCommand => 'MyString', # max: 51200
76 }, # OPTIONAL
77 }, # OPTIONAL
78 },
79 AutoScalingConfigurationArn => 'MyAppRunnerResourceArn', # OPTIONAL
80 EncryptionConfiguration => {
81 KmsKey => 'MyKmsKeyArn', # max: 256
82  
83 }, # OPTIONAL
84 HealthCheckConfiguration => {
85 HealthyThreshold => 1, # min: 1, max: 20; OPTIONAL
86 Interval => 1, # min: 1, max: 20; OPTIONAL
87 Path => 'MyString', # max: 51200
88 Protocol => 'TCP', # values: TCP, HTTP; OPTIONAL
89 Timeout => 1, # min: 1, max: 20; OPTIONAL
90 UnhealthyThreshold => 1, # min: 1, max: 20; OPTIONAL
91 }, # OPTIONAL
92 InstanceConfiguration => {
93 Cpu => 'MyCpu', # min: 4, max: 6; OPTIONAL
94 InstanceRoleArn => 'MyRoleArn', # min: 29, max: 102; OPTIONAL
95 Memory => 'MyMemory', # min: 4, max: 4; OPTIONAL
96 }, # OPTIONAL
97 Tags => [
98 {
99 Key => 'MyTagKey', # min: 1, max: 128; OPTIONAL
100 Value => 'MyTagValue', # max: 256; OPTIONAL
101 },
102 ...
103 ], # OPTIONAL
104 );
105  
106 # Results:
107 my $OperationId = $CreateServiceResponse->OperationId;
108 my $Service = $CreateServiceResponse->Service;
109  
110 # Returns a L<Paws::AppRunner::CreateServiceResponse> object.
111  
112 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.
113 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apprunner/CreateService>
114  
115 =head1 ATTRIBUTES
116  
117  
118 =head2 AutoScalingConfigurationArn => Str
119  
120 The Amazon Resource Name (ARN) of an App Runner automatic scaling
121 configuration resource that you want to associate with your service. If
122 not provided, App Runner associates the latest revision of a default
123 auto scaling configuration.
124  
125  
126  
127 =head2 EncryptionConfiguration => L<Paws::AppRunner::EncryptionConfiguration>
128  
129 An optional custom encryption key that App Runner uses to encrypt the
130 copy of your source repository that it maintains and your service logs.
131 By default, App Runner uses an AWS managed CMK.
132  
133  
134  
135 =head2 HealthCheckConfiguration => L<Paws::AppRunner::HealthCheckConfiguration>
136  
137 The settings for the health check that AWS App Runner performs to
138 monitor the health of your service.
139  
140  
141  
142 =head2 InstanceConfiguration => L<Paws::AppRunner::InstanceConfiguration>
143  
144 The runtime configuration of instances (scaling units) of the App
145 Runner service.
146  
147  
148  
149 =head2 B<REQUIRED> ServiceName => Str
150  
151 A name for the new service. It must be unique across all the running
152 App Runner services in your AWS account in the AWS Region.
153  
154  
155  
156 =head2 B<REQUIRED> SourceConfiguration => L<Paws::AppRunner::SourceConfiguration>
157  
158 The source to deploy to the App Runner service. It can be a code or an
159 image repository.
160  
161  
162  
163 =head2 Tags => ArrayRef[L<Paws::AppRunner::Tag>]
164  
165 An optional list of metadata items that you can associate with your
166 service resource. A tag is a key-value pair.
167  
168  
169  
170  
171 =head1 SEE ALSO
172  
173 This class forms part of L<Paws>, documenting arguments for method CreateService in L<Paws::AppRunner>
174  
175 =head1 BUGS and CONTRIBUTIONS
176  
177 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
178  
179 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
180  
181 =cut
182