Class: Aws::Amplify::Types::UpdateAppRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb

Overview

Note:

When making an API call, you may pass UpdateAppRequest data as a hash:

{
  app_id: "AppId", # required
  name: "Name",
  description: "Description",
  platform: "WEB", # accepts WEB
  iam_service_role_arn: "ServiceRoleArn",
  environment_variables: {
    "EnvKey" => "EnvValue",
  },
  enable_branch_auto_build: false,
  enable_branch_auto_deletion: false,
  enable_basic_auth: false,
  basic_auth_credentials: "BasicAuthCredentials",
  custom_rules: [
    {
      source: "Source", # required
      target: "Target", # required
      status: "Status",
      condition: "Condition",
    },
  ],
  build_spec: "BuildSpec",
  custom_headers: "CustomHeaders",
  enable_auto_branch_creation: false,
  auto_branch_creation_patterns: ["AutoBranchCreationPattern"],
  auto_branch_creation_config: {
    stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
    framework: "Framework",
    enable_auto_build: false,
    environment_variables: {
      "EnvKey" => "EnvValue",
    },
    basic_auth_credentials: "BasicAuthCredentials",
    enable_basic_auth: false,
    enable_performance_mode: false,
    build_spec: "BuildSpec",
    enable_pull_request_preview: false,
    pull_request_environment_name: "PullRequestEnvironmentName",
  },
  repository: "Repository",
  oauth_token: "OauthToken",
  access_token: "AccessToken",
}

The request structure for the update app request.

Constant Summary collapse

SENSITIVE =
[:basic_auth_credentials, :oauth_token, :access_token]

Instance Attribute Summary collapse

Instance Attribute Details

#access_tokenString

The personal access token for a third-party source control system for an Amplify app. The token is used to create webhook and a read-only deploy key. The token is not stored.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#app_idString

The unique ID for an Amplify app.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#auto_branch_creation_configTypes::AutoBranchCreationConfig

The automated branch creation configuration for an Amplify app.



2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#auto_branch_creation_patternsArray<String>

Describes the automated branch creation glob patterns for an Amplify app.

Returns:

  • (Array<String>)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#basic_auth_credentialsString

The basic authorization credentials for an Amplify app.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#build_specString

The build specification (build spec) for an Amplify app.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#custom_headersString

The custom HTTP headers for an Amplify app.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#custom_rulesArray<Types::CustomRule>

The custom redirect and rewrite rules for an Amplify app.

Returns:



2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#descriptionString

The description for an Amplify app.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#enable_auto_branch_creationBoolean

Enables automated branch creation for an Amplify app.

Returns:

  • (Boolean)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#enable_basic_authBoolean

Enables basic authorization for an Amplify app.

Returns:

  • (Boolean)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#enable_branch_auto_buildBoolean

Enables branch auto-building for an Amplify app.

Returns:

  • (Boolean)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#enable_branch_auto_deletionBoolean

Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.

Returns:

  • (Boolean)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#environment_variablesHash<String,String>

The environment variables for an Amplify app.

Returns:

  • (Hash<String,String>)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#iam_service_role_arnString

The AWS Identity and Access Management (IAM) service role for an Amplify app.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#nameString

The name for an Amplify app.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#oauth_tokenString

The OAuth token for a third-party source control system for an Amplify app. The token is used to create a webhook and a read-only deploy key. The OAuth token is not stored.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#platformString

The platform for an Amplify app.

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end

#repositoryString

The name of the repository for an Amplify app

Returns:

  • (String)


2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 2847

class UpdateAppRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :platform,
  :iam_service_role_arn,
  :environment_variables,
  :enable_branch_auto_build,
  :enable_branch_auto_deletion,
  :enable_basic_auth,
  :basic_auth_credentials,
  :custom_rules,
  :build_spec,
  :custom_headers,
  :enable_auto_branch_creation,
  :auto_branch_creation_patterns,
  :auto_branch_creation_config,
  :repository,
  :oauth_token,
  :access_token)
  SENSITIVE = [:basic_auth_credentials, :oauth_token, :access_token]
  include Aws::Structure
end