AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the AWS App Runner UpdateService API operation.

Syntax

Update-AARService
-ServiceArn <String>
-AuthenticationConfiguration_AccessRoleArn <String>
-SourceConfiguration_AutoDeploymentsEnabled <Boolean>
-AutoScalingConfigurationArn <String>
-CodeConfigurationValues_BuildCommand <String>
-CodeConfiguration_ConfigurationSource <ConfigurationSource>
-AuthenticationConfiguration_ConnectionArn <String>
-InstanceConfiguration_Cpu <String>
-EgressConfiguration_EgressType <EgressType>
-HealthCheckConfiguration_HealthyThreshold <Int32>
-ImageRepository_ImageIdentifier <String>
-ImageRepository_ImageRepositoryType <ImageRepositoryType>
-InstanceConfiguration_InstanceRoleArn <String>
-HealthCheckConfiguration_Interval <Int32>
-NetworkConfiguration_IpAddressType <IpAddressType>
-IngressConfiguration_IsPubliclyAccessible <Boolean>
-InstanceConfiguration_Memory <String>
-ObservabilityConfiguration_ObservabilityConfigurationArn <String>
-ObservabilityConfiguration_ObservabilityEnabled <Boolean>
-HealthCheckConfiguration_Path <String>
-CodeConfigurationValues_Port <String>
-ImageConfiguration_Port <String>
-HealthCheckConfiguration_Protocol <HealthCheckProtocol>
-CodeRepository_RepositoryUrl <String>
-CodeConfigurationValues_Runtime <Runtime>
-CodeConfigurationValues_RuntimeEnvironmentSecret <Hashtable>
-ImageConfiguration_RuntimeEnvironmentSecret <Hashtable>
-CodeConfigurationValues_RuntimeEnvironmentVariable <Hashtable>
-ImageConfiguration_RuntimeEnvironmentVariable <Hashtable>
-CodeRepository_SourceDirectory <String>
-CodeConfigurationValues_StartCommand <String>
-ImageConfiguration_StartCommand <String>
-HealthCheckConfiguration_Timeout <Int32>
-SourceCodeVersion_Type <SourceCodeVersionType>
-HealthCheckConfiguration_UnhealthyThreshold <Int32>
-SourceCodeVersion_Value <String>
-EgressConfiguration_VpcConnectorArn <String>
-Select <String>
-PassThru <SwitchParameter>
-Force <SwitchParameter>
-ClientConfig <AmazonAppRunnerConfig>

Description

Update an App Runner service. You can update the source configuration and instance configuration of the service. You can also update the ARN of the auto scaling configuration resource that's associated with the service. However, you can't change the name or the encryption configuration of the service. These can be set only when you create the service. To update the tags applied to your service, use the separate actions TagResource and UntagResource. This is an asynchronous operation. On a successful call, you can use the returned OperationId and the ListOperations call to track the operation's progress.

Parameters

-AuthenticationConfiguration_AccessRoleArn <String>
The Amazon Resource Name (ARN) of the IAM role that grants the App Runner service access to a source repository. It's required for ECR image repositories (but not for ECR Public repositories).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_AuthenticationConfiguration_AccessRoleArn
-AuthenticationConfiguration_ConnectionArn <String>
The Amazon Resource Name (ARN) of the App Runner connection that enables the App Runner service to connect to a source repository. It's required for GitHub code repositories.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_AuthenticationConfiguration_ConnectionArn
-AutoScalingConfigurationArn <String>
The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with the App Runner service.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientConfig <AmazonAppRunnerConfig>
Amazon.PowerShell.Cmdlets.AAR.AmazonAppRunnerClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-CodeConfiguration_ConfigurationSource <ConfigurationSource>
The source of the App Runner configuration. Values are interpreted as follows:
  • REPOSITORY – App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores CodeConfigurationValues.
  • API – App Runner uses configuration values provided in CodeConfigurationValues and ignores the apprunner.yaml file in the source code repository.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_CodeConfiguration_ConfigurationSource
-CodeConfigurationValues_BuildCommand <String>
The command App Runner runs to build your application.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_CodeConfiguration_CodeConfigurationValues_BuildCommand
-CodeConfigurationValues_Port <String>
The port that your application listens to in the container.Default: 8080
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_CodeConfiguration_CodeConfigurationValues_Port
-CodeConfigurationValues_Runtime <Runtime>
A runtime environment type for building and running an App Runner service. It represents a programming language runtime.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_CodeConfiguration_CodeConfigurationValues_Runtime
-CodeConfigurationValues_RuntimeEnvironmentSecret <Hashtable>
An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable. The supported values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.
  • If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services Region as the service that you're launching, you can use either the full ARN or name of the secret. If the parameter exists in a different Region, then the full ARN must be specified.
  • Currently, cross account referencing of Amazon Web Services Systems Manager Parameter Store parameter is not supported.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_CodeConfiguration_CodeConfigurationValues_RuntimeEnvironmentSecrets
-CodeConfigurationValues_RuntimeEnvironmentVariable <Hashtable>
The environment variables that are available to your running App Runner service. An array of key-value pairs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_CodeConfiguration_CodeConfigurationValues_RuntimeEnvironmentVariables
-CodeConfigurationValues_StartCommand <String>
The command App Runner runs to start your application.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_CodeConfiguration_CodeConfigurationValues_StartCommand
-CodeRepository_RepositoryUrl <String>
The location of the repository that contains the source code.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_RepositoryUrl
-CodeRepository_SourceDirectory <String>
The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_SourceDirectory
-EgressConfiguration_EgressType <EgressType>
The type of egress configuration.Set to DEFAULT for access to resources hosted on public networks.Set to VPC to associate your service to a custom VPC specified by VpcConnectorArn.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesNetworkConfiguration_EgressConfiguration_EgressType
-EgressConfiguration_VpcConnectorArn <String>
The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesNetworkConfiguration_EgressConfiguration_VpcConnectorArn
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-HealthCheckConfiguration_HealthyThreshold <Int32>
The number of consecutive checks that must succeed before App Runner decides that the service is healthy.Default: 1
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-HealthCheckConfiguration_Interval <Int32>
The time interval, in seconds, between health checks.Default: 5
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-HealthCheckConfiguration_Path <String>
The URL that health check requests are sent to.Path is only applicable when you set Protocol to HTTP.Default: "/"
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-HealthCheckConfiguration_Protocol <HealthCheckProtocol>
The IP protocol that App Runner uses to perform health checks for your service.If you set Protocol to HTTP, App Runner sends health check requests to the HTTP path specified by Path.Default: TCP
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-HealthCheckConfiguration_Timeout <Int32>
The time, in seconds, to wait for a health check response before deciding it failed.Default: 2
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-HealthCheckConfiguration_UnhealthyThreshold <Int32>
The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.Default: 5
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ImageConfiguration_Port <String>
The port that your application listens to in the container.Default: 8080
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_ImageRepository_ImageConfiguration_Port
-ImageConfiguration_RuntimeEnvironmentSecret <Hashtable>
An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable. The supported values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.
  • If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services Region as the service that you're launching, you can use either the full ARN or name of the secret. If the parameter exists in a different Region, then the full ARN must be specified.
  • Currently, cross account referencing of Amazon Web Services Systems Manager Parameter Store parameter is not supported.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_ImageRepository_ImageConfiguration_RuntimeEnvironmentSecrets
-ImageConfiguration_RuntimeEnvironmentVariable <Hashtable>
Environment variables that are available to your running App Runner service. An array of key-value pairs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_ImageRepository_ImageConfiguration_RuntimeEnvironmentVariables
-ImageConfiguration_StartCommand <String>
An optional command that App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_ImageRepository_ImageConfiguration_StartCommand
-ImageRepository_ImageIdentifier <String>
The identifier of an image.For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_ImageRepository_ImageIdentifier
-ImageRepository_ImageRepositoryType <ImageRepositoryType>
The type of the image repository. This reflects the repository provider and whether the repository is private or public.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_ImageRepository_ImageRepositoryType
-IngressConfiguration_IsPubliclyAccessible <Boolean>
Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesNetworkConfiguration_IngressConfiguration_IsPubliclyAccessible
-InstanceConfiguration_Cpu <String>
The number of CPU units reserved for each instance of your App Runner service.Default: 1 vCPU
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-InstanceConfiguration_InstanceRoleArn <String>
The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any Amazon Web Services APIs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-InstanceConfiguration_Memory <String>
The amount of memory, in MB or GB, reserved for each instance of your App Runner service.Default: 2 GB
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkConfiguration_IpAddressType <IpAddressType>
App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) for your incoming public network configuration. This is an optional parameter. If you do not specify an IpAddressType, it defaults to select IPv4. Currently, App Runner supports dual stack for only Public endpoint. Only IPv4 is supported for Private endpoint. If you update a service that's using dual-stack Public endpoint to a Private endpoint, your App Runner service will default to support only IPv4 for Private endpoint and fail to receive traffic originating from IPv6 endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ObservabilityConfiguration_ObservabilityConfigurationArn <String>
The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. Specified only when ObservabilityEnabled is true.Specify an ARN with a name and a revision number to associate that revision. For example: arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3Specify just the name to associate the latest revision. For example: arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ObservabilityConfiguration_ObservabilityEnabled <Boolean>
When true, an observability configuration resource is associated with the service, and an ObservabilityConfigurationArn is specified.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PassThru <SwitchParameter>
Changes the cmdlet behavior to return the value passed to the ServiceArn parameter. The -PassThru parameter is deprecated, use -Select '^ServiceArn' instead. This parameter will be removed in a future version.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.AppRunner.Model.UpdateServiceResponse). Specifying the name of a property of type Amazon.AppRunner.Model.UpdateServiceResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ServiceArn <String>
The Amazon Resource Name (ARN) of the App Runner service that you want to update.
Required?True
Position?1
Accept pipeline input?True (ByValue, ByPropertyName)
-SourceCodeVersion_Type <SourceCodeVersionType>
The type of version identifier.For a git-based repository, branches represent versions.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_SourceCodeVersion_Type
-SourceCodeVersion_Value <String>
A source code version.For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfiguration_CodeRepository_SourceCodeVersion_Value
-SourceConfiguration_AutoDeploymentsEnabled <Boolean>
If true, continuous integration from the source repository is enabled for the App Runner service. Each repository change (including any source code commit or new image version) starts a deployment.Default: App Runner sets to false for a source image that uses an ECR Public repository or an ECR repository that's in an Amazon Web Services account other than the one that the service is in. App Runner sets to true in all other cases (which currently include a source code repository or a source image using a same-account ECR repository).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.AppRunner.Model.UpdateServiceResponse object containing multiple properties.

Supported Version

AWS Tools for PowerShell: 2.x.y.z