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 Amplify Gen 3 UpdateEnvironment API operation.

Syntax

Update-AMPG3Environment
-AppName <String>
-Backend_Auth <String>
-Backend_Database_BackupRetentionDay <Int32>
-SourceConfig_GitSource_BranchMatchPattern <String[]>
-Backend_DatabaseLogConfig_S3Config_BucketArn <String>
-Web_AccessLogConfig_S3Config_BucketArn <String>
-NetworkConfig_BuildNetworkConnectorArn <String>
-NetworkConfig_ComputeNetworkConnectorArn <String>
-Web_SkewProtectionConfig_CookieMaxAgeSecond <Int32>
-SourceConfig_GitSource_DeploymentTriggerEvent <String[]>
-EnvironmentName <String>
-EnvironmentRoleArn <String>
-EnvironmentRolePermissionMode <EnvironmentRolePermissionMode>
-Backend_Database_MaxBackendCapacityUnit <Int32>
-SourceConfig_NoSource <NoSource>
-GradualRolloutConfig_PresetConfig_Preset <RolloutPreset>
-Web_EnvironmentAliasConfig_RoutingMode <EnvironmentAliasRoutingMode>
-Backend_DatabaseLogConfig_CloudWatchLogsConfig_SamplingRate <Int32>
-Backend_DatabaseLogConfig_S3Config_SamplingRate <Int32>
-Web_AccessLogConfig_CloudWatchLogsConfig_SamplingRate <Int32>
-Web_AccessLogConfig_S3Config_SamplingRate <Int32>
-Backend_DatabaseLogConfig_CloudWatchLogsConfig_Status <DatabaseCloudWatchLogsDeliveryStatus>
-Backend_DatabaseLogConfig_S3Config_Status <DatabaseS3DeliveryStatus>
-Web_AccessLogConfig_CloudWatchLogsConfig_Status <CloudWatchLogsDeliveryStatus>
-Web_AccessLogConfig_S3Config_Status <S3DeliveryStatus>
-Web_SkewProtectionConfig_Status <SkewProtectionStatus>
-WafLogConfig <WafLogConfigRequest[]>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonAmplifyGen3Config>

Description

Updates an environment for a Gen 3 app.

Parameters

-AppName <String>
The name of the app.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-Backend_Auth <String>
The authentication settings for the environment's backend, as a JSON document. If you omit this, the stored settings are unchanged. Specify an empty JSON object ({}) to reset the settings to the defaults.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Backend_Database_BackupRetentionDay <Int32>
The number of days to keep automated backups. This is also how far back the environment's database can be restored.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesBackend_Database_BackupRetentionDays
-Backend_Database_MaxBackendCapacityUnit <Int32>
The maximum number of backend capacity units that the environment's database can scale to.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesBackend_Database_MaxBackendCapacityUnits
-Backend_DatabaseLogConfig_CloudWatchLogsConfig_SamplingRate <Int32>
The percentage of database log lines to deliver to CloudWatch Logs. When Status is ENABLED, specify a value from 1 to 100. When Status is DISABLED, omit this or specify 0. If you omit this, the stored rate is used, or 100 if no rate is stored.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Backend_DatabaseLogConfig_CloudWatchLogsConfig_Status <DatabaseCloudWatchLogsDeliveryStatus>
Specifies whether to deliver database logs to CloudWatch Logs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Backend_DatabaseLogConfig_S3Config_BucketArn <String>
The Amazon Resource Name (ARN) of the S3 bucket to deliver the database logs to. Required when Status is ENABLED, unless a bucket is already stored. If you omit this, the stored bucket is used. If you specify a different bucket, delivery moves to that bucket.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Backend_DatabaseLogConfig_S3Config_SamplingRate <Int32>
The percentage of database log lines to deliver to Amazon S3. When Status is ENABLED, specify a value from 1 to 100. When Status is DISABLED, omit this or specify 0. If you omit this, the stored rate is used, or 100 if no rate is stored.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Backend_DatabaseLogConfig_S3Config_Status <DatabaseS3DeliveryStatus>
Specifies whether to deliver database logs to Amazon S3.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientConfig <AmazonAmplifyGen3Config>
Amazon.PowerShell.Cmdlets.AMPG3.AmazonAmplifyGen3ClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EnvironmentName <String>
The name of the environment.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-EnvironmentRoleArn <String>
The Amazon Resource Name (ARN) of the IAM role for the environment.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EnvironmentRolePermissionMode <EnvironmentRolePermissionMode>
The permission mode for the environment's IAM role.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
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)
-GradualRolloutConfig_PresetConfig_Preset <RolloutPreset>
The predefined gradual rollout schedule to use.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkConfig_BuildNetworkConnectorArn <String>
The Amazon Resource Name (ARN) of the network connector used for VPC access during builds. Set an empty value to remove it.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkConfig_ComputeNetworkConnectorArn <String>
The Amazon Resource Name (ARN) of the network connector used for VPC access at runtime. Set an empty value to remove it.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.AmplifyGen3.Model.UpdateEnvironmentResponse). Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-SourceConfig_GitSource_BranchMatchPattern <String[]>
The branch name patterns that trigger a deployment. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfig_GitSource_BranchMatchPatterns
-SourceConfig_GitSource_DeploymentTriggerEvent <String[]>
The Git events that trigger a deployment. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSourceConfig_GitSource_DeploymentTriggerEvents
-SourceConfig_NoSource <NoSource>
Removes the configured source repository.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-WafLogConfig <WafLogConfigRequest[]>
A list of the environment's AWS WAF log configurations. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesWafLogConfigs
-Web_AccessLogConfig_CloudWatchLogsConfig_SamplingRate <Int32>
The percentage of requests to log.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Web_AccessLogConfig_CloudWatchLogsConfig_Status <CloudWatchLogsDeliveryStatus>
The status of the resource.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Web_AccessLogConfig_S3Config_BucketArn <String>
The Amazon Resource Name (ARN) of the Amazon S3 bucket. If you specify a different bucket while S3 delivery is enabled, delivery moves to that bucket. Logs written during the move may be lost.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Web_AccessLogConfig_S3Config_SamplingRate <Int32>
The percentage of requests to log.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Web_AccessLogConfig_S3Config_Status <S3DeliveryStatus>
The status of the resource.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Web_EnvironmentAliasConfig_RoutingMode <EnvironmentAliasRoutingMode>
How the environment alias routes traffic to deployments.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Web_SkewProtectionConfig_CookieMaxAgeSecond <Int32>
The maximum age, in seconds, of the version skew protection cookie.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesWeb_SkewProtectionConfig_CookieMaxAgeSeconds
-Web_SkewProtectionConfig_Status <SkewProtectionStatus>
The status of the resource.
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 does not generate any output.The service response (type Amazon.AmplifyGen3.Model.UpdateEnvironmentResponse) be returned by specifying '-Select *'.

Supported Version

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