« blib/lib/Paws/AppRunner/UntagResourceResponse.pm
↑ Summary
blib/lib/Paws/AppRunner/UpdateServiceResponse.pm »
| 1 | |||
| 2 | package Paws::AppRunner::UpdateService; | ||
| 3 | use Moose; | ||
| 4 | has AutoScalingConfigurationArn => (is => 'ro', isa => 'Str'); | ||
| 5 | has HealthCheckConfiguration => (is => 'ro', isa => 'Paws::AppRunner::HealthCheckConfiguration'); | ||
| 6 | has InstanceConfiguration => (is => 'ro', isa => 'Paws::AppRunner::InstanceConfiguration'); | ||
| 7 | has ServiceArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has SourceConfiguration => (is => 'ro', isa => 'Paws::AppRunner::SourceConfiguration'); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateService'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppRunner::UpdateServiceResponse'); | ||
| 14 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::AppRunner::UpdateService - Arguments for method UpdateService on L<Paws::AppRunner> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method UpdateService on the | ||
| 26 | L<AWS App Runner|Paws::AppRunner> service. Use the attributes of this class | ||
| 27 | as arguments to method UpdateService. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateService. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $apprunner = Paws->service('AppRunner'); | ||
| 34 | my $UpdateServiceResponse = $apprunner->UpdateService( | ||
| 35 | ServiceArn => 'MyAppRunnerResourceArn', | ||
| 36 | AutoScalingConfigurationArn => 'MyAppRunnerResourceArn', # OPTIONAL | ||
| 37 | HealthCheckConfiguration => { | ||
| 38 | HealthyThreshold => 1, # min: 1, max: 20; OPTIONAL | ||
| 39 | Interval => 1, # min: 1, max: 20; OPTIONAL | ||
| 40 | Path => 'MyString', # max: 51200; OPTIONAL | ||
| 41 | Protocol => 'TCP', # values: TCP, HTTP; OPTIONAL | ||
| 42 | Timeout => 1, # min: 1, max: 20; OPTIONAL | ||
| 43 | UnhealthyThreshold => 1, # min: 1, max: 20; OPTIONAL | ||
| 44 | }, # OPTIONAL | ||
| 45 | InstanceConfiguration => { | ||
| 46 | Cpu => 'MyCpu', # min: 4, max: 6; OPTIONAL | ||
| 47 | InstanceRoleArn => 'MyRoleArn', # min: 29, max: 102; OPTIONAL | ||
| 48 | Memory => 'MyMemory', # min: 4, max: 4; OPTIONAL | ||
| 49 | }, # OPTIONAL | ||
| 50 | SourceConfiguration => { | ||
| 51 | AuthenticationConfiguration => { | ||
| 52 | AccessRoleArn => 'MyRoleArn', # min: 29, max: 102; OPTIONAL | ||
| 53 | ConnectionArn => 'MyAppRunnerResourceArn', # min: 1, max: 1011 | ||
| 54 | }, # OPTIONAL | ||
| 55 | AutoDeploymentsEnabled => 1, # OPTIONAL | ||
| 56 | CodeRepository => { | ||
| 57 | RepositoryUrl => 'MyString', # max: 51200; OPTIONAL | ||
| 58 | SourceCodeVersion => { | ||
| 59 | Type => 'BRANCH', # values: BRANCH | ||
| 60 | Value => 'MyString', # max: 51200; OPTIONAL | ||
| 61 | |||
| 62 | }, | ||
| 63 | CodeConfiguration => { | ||
| 64 | ConfigurationSource => 'REPOSITORY', # values: REPOSITORY, API | ||
| 65 | CodeConfigurationValues => { | ||
| 66 | Runtime => 'PYTHON_3', # values: PYTHON_3, NODEJS_12 | ||
| 67 | BuildCommand => 'MyBuildCommand', # OPTIONAL | ||
| 68 | Port => 'MyString', # max: 51200; OPTIONAL | ||
| 69 | RuntimeEnvironmentVariables => { | ||
| 70 | 'MyRuntimeEnvironmentVariablesKey' => | ||
| 71 | 'MyRuntimeEnvironmentVariablesValue', | ||
| 72 | }, # OPTIONAL | ||
| 73 | StartCommand => 'MyStartCommand', # OPTIONAL | ||
| 74 | }, # OPTIONAL | ||
| 75 | }, # OPTIONAL | ||
| 76 | }, # OPTIONAL | ||
| 77 | ImageRepository => { | ||
| 78 | ImageIdentifier => 'MyImageIdentifier', # min: 1, max: 1024 | ||
| 79 | ImageRepositoryType => 'ECR', # values: ECR, ECR_PUBLIC | ||
| 80 | ImageConfiguration => { | ||
| 81 | Port => 'MyString', # max: 51200; OPTIONAL | ||
| 82 | RuntimeEnvironmentVariables => { | ||
| 83 | 'MyRuntimeEnvironmentVariablesKey' => | ||
| 84 | 'MyRuntimeEnvironmentVariablesValue', | ||
| 85 | }, # OPTIONAL | ||
| 86 | StartCommand => 'MyString', # max: 51200; OPTIONAL | ||
| 87 | }, # OPTIONAL | ||
| 88 | }, # OPTIONAL | ||
| 89 | }, # OPTIONAL | ||
| 90 | ); | ||
| 91 | |||
| 92 | # Results: | ||
| 93 | my $OperationId = $UpdateServiceResponse->OperationId; | ||
| 94 | my $Service = $UpdateServiceResponse->Service; | ||
| 95 | |||
| 96 | # Returns a L<Paws::AppRunner::UpdateServiceResponse> object. | ||
| 97 | |||
| 98 | 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. | ||
| 99 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apprunner/UpdateService> | ||
| 100 | |||
| 101 | =head1 ATTRIBUTES | ||
| 102 | |||
| 103 | |||
| 104 | =head2 AutoScalingConfigurationArn => Str | ||
| 105 | |||
| 106 | The Amazon Resource Name (ARN) of an App Runner automatic scaling | ||
| 107 | configuration resource that you want to associate with your service. | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head2 HealthCheckConfiguration => L<Paws::AppRunner::HealthCheckConfiguration> | ||
| 112 | |||
| 113 | The settings for the health check that AWS App Runner performs to | ||
| 114 | monitor the health of your service. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 InstanceConfiguration => L<Paws::AppRunner::InstanceConfiguration> | ||
| 119 | |||
| 120 | The runtime configuration to apply to instances (scaling units) of the | ||
| 121 | App Runner service. | ||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | =head2 B<REQUIRED> ServiceArn => Str | ||
| 126 | |||
| 127 | The Amazon Resource Name (ARN) of the App Runner service that you want | ||
| 128 | to update. | ||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | =head2 SourceConfiguration => L<Paws::AppRunner::SourceConfiguration> | ||
| 133 | |||
| 134 | The source configuration to apply to the App Runner service. | ||
| 135 | |||
| 136 | You can change the configuration of the code or image repository that | ||
| 137 | the service uses. However, you can't switch from code to image or the | ||
| 138 | other way around. This means that you must provide the same structure | ||
| 139 | member of C<SourceConfiguration> that you originally included when you | ||
| 140 | created the service. Specifically, you can include either | ||
| 141 | C<CodeRepository> or C<ImageRepository>. To update the source | ||
| 142 | configuration, set the values to members of the structure that you | ||
| 143 | include. | ||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | |||
| 148 | =head1 SEE ALSO | ||
| 149 | |||
| 150 | This class forms part of L<Paws>, documenting arguments for method UpdateService in L<Paws::AppRunner> | ||
| 151 | |||
| 152 | =head1 BUGS and CONTRIBUTIONS | ||
| 153 | |||
| 154 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 155 | |||
| 156 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 157 | |||
| 158 | =cut | ||
| 159 |