Class: Aws::AmplifyGen3::Client

Inherits:
Seahorse::Client::Base show all
Includes:
ClientStubs
Defined in:
gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb

Overview

An API client for AmplifyGen3. To construct a client, you need to configure a :region and :credentials.

client = Aws::AmplifyGen3::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

For details on configuring region and credentials see the developer guide.

See #initialize for a full list of supported configuration options.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

API Operations collapse

Instance Method Summary collapse

Methods included from ClientStubs

#api_requests, #stub_data, #stub_responses

Methods inherited from Seahorse::Client::Base

add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.

Parameters:

  • options (Hash)

Options Hash (options):

  • :plugins (Array<Seahorse::Client::Plugin>) — default: []] —

    A list of plugins to apply to the client. Each plugin is either a class name or an instance of a plugin class.

  • :credentials (required, Aws::CredentialProvider) —

    Your AWS credentials used for authentication. This can be any class that includes and implements Aws::CredentialProvider, or instance of any one of the following classes:

    • Aws::Credentials - Used for configuring static, non-refreshing credentials.

    • Aws::SharedCredentials - Used for loading static credentials from a shared file, such as ~/.aws/config.

    • Aws::AssumeRoleCredentials - Used when you need to assume a role.

    • Aws::AssumeRoleWebIdentityCredentials - Used when you need to assume a role after providing credentials via the web.

    • Aws::SSOCredentials - Used for loading credentials from AWS SSO using an access token generated from aws login.

    • Aws::ProcessCredentials - Used for loading credentials from a process that outputs to stdout.

    • Aws::InstanceProfileCredentials - Used for loading credentials from an EC2 IMDS on an EC2 instance.

    • Aws::ECSCredentials - Used for loading credentials from instances running in ECS.

    • Aws::CognitoIdentityCredentials - Used for loading credentials from the Cognito Identity service.

    When :credentials are not configured directly, the following locations will be searched for credentials:

    • Aws.config[:credentials]

    • The :access_key_id, :secret_access_key, :session_token, and :account_id options.

    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'], ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID'].

    • ~/.aws/credentials

    • ~/.aws/config

    • EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive. Construct and pass an instance of Aws::InstanceProfileCredentials or Aws::ECSCredentials to enable retries and extended timeouts. Instance profile credential fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] to true.

  • :region (required, String) —

    The AWS region to connect to. The configured :region is used to determine the service :endpoint. When not passed, a default :region is searched for in the following locations:

    • Aws.config[:region]
    • ENV['AWS_REGION']
    • ENV['AMAZON_REGION']
    • ENV['AWS_DEFAULT_REGION']
    • ~/.aws/credentials
    • ~/.aws/config
  • :access_key_id (String)
  • :account_id (String)
  • :active_endpoint_cache (Boolean) — default: false —

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false.

  • :adaptive_retry_wait_to_fill (Boolean) — default: true —

    Used only in adaptive retry mode. When true, the request will sleep until there is sufficent client side capacity to retry the request. When false, the request will raise a RetryCapacityNotAvailableError and will not retry instead of sleeping.

  • :auth_scheme_preference (Array<String>) —

    A list of preferred authentication schemes to use when making a request. Supported values are: sigv4, sigv4a, httpBearerAuth, and noAuth. When set using ENV['AWS_AUTH_SCHEME_PREFERENCE'] or in shared config as auth_scheme_preference, the value should be a comma-separated list.

  • :client_side_monitoring (Boolean) — default: false —

    When true, client-side metrics will be collected for all API requests from this client.

  • :client_side_monitoring_client_id (String) — default: "" —

    Allows you to provide an identifier for this client which will be attached to all generated client side metrics. Defaults to an empty string.

  • :client_side_monitoring_host (String) — default: "127.0.0.1" —

    Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_port (Integer) — default: 31000 —

    Required for publishing client metrics. The port that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) — default: Aws::ClientSideMonitoring::Publisher —

    Allows you to provide a custom client-side monitoring publisher class. By default, will use the Client Side Monitoring Agent Publisher.

  • :convert_params (Boolean) — default: true —

    When true, an attempt is made to coerce request parameters into the required types.

  • :correct_clock_skew (Boolean) — default: true —

    Used only in standard and adaptive retry modes. Specifies whether to apply a clock skew correction and retry requests with skewed client clocks. Takes effect only when disable_clock_skew_correction is not set.

  • :defaults_mode (String) — default: "legacy" —

    See DefaultsModeConfiguration for a list of the accepted modes and the configuration defaults that are included.

  • :disable_clock_skew_correction (Boolean) —

    Used only in standard and adaptive retry modes. When true, the SDK does not apply a clock skew correction, does not update its stored skew from responses, and does not retry clock skew errors. Clock skew correction is enabled by default.

  • :disable_host_prefix_injection (Boolean) — default: false —

    When true, the SDK will not prepend the modeled host prefix to the endpoint.

  • :disable_request_compression (Boolean) — default: false —

    When set to 'true' the request body will not be compressed for supported operations.

  • :endpoint (String, URI::HTTPS, URI::HTTP) —

    Normally you should not configure the :endpoint option directly. This is normally constructed from the :region option. Configuring :endpoint is normally reserved for connecting to test or custom endpoints. The endpoint should be a URI formatted like:

    'http://example.com'
    'https://example.com'
    'http://example.com:123'
    
  • :endpoint_cache_max_entries (Integer) — default: 1000 —

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000.

  • :endpoint_cache_max_threads (Integer) — default: 10 —

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.

  • :endpoint_cache_poll_interval (Integer) — default: 60 —

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec.

  • :endpoint_discovery (Boolean) — default: false —

    When set to true, endpoint discovery will be enabled for operations when available.

  • :ignore_configured_endpoint_urls (Boolean) —

    Setting to true disables use of endpoint URLs provided via environment variables and the shared configuration file.

  • :log_formatter (Aws::Log::Formatter) — default: Aws::Log::Formatter.default —

    The log formatter.

  • :log_level (Symbol) — default: :info —

    The log level to send messages to the :logger at.

  • :logger (Logger) —

    The Logger instance to send log messages to. If this option is not set, logging will be disabled.

  • :max_attempts (Integer) — default: 3 —

    An integer representing the maximum number attempts that will be made for a single request, including the initial attempt. For example, setting this value to 5 will result in a request being retried up to 4 times. Used in standard and adaptive retry modes. Defaults to 3, except for DynamoDB and DynamoDB Streams, which default to 4.

  • :profile (String) — default: "default" —

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used.

  • :request_checksum_calculation (String) — default: "when_supported" —

    Determines when a checksum will be calculated for request payloads. Values are:

    • when_supported - (default) When set, a checksum will be calculated for all request payloads of operations modeled with the httpChecksum trait where requestChecksumRequired is true and/or a requestAlgorithmMember is modeled.
    • when_required - When set, a checksum will only be calculated for request payloads of operations modeled with the httpChecksum trait where requestChecksumRequired is true or where a requestAlgorithmMember is modeled and supplied.
  • :request_min_compression_size_bytes (Integer) — default: 10240 —

    The minimum size in bytes that triggers compression for request bodies. The value must be non-negative integer value between 0 and 10485780 bytes inclusive.

  • :response_checksum_validation (String) — default: "when_supported" —

    Determines when checksum validation will be performed on response payloads. Values are:

    • when_supported - (default) When set, checksum validation is performed on all response payloads of operations modeled with the httpChecksum trait where responseAlgorithms is modeled, except when no modeled checksum algorithms are supported.
    • when_required - When set, checksum validation is not performed on response payloads of operations unless the checksum algorithm is supported and the requestValidationModeMember member is set to ENABLED.
  • :retry_backoff (Proc) —

    A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. This option is only used in the legacy retry mode.

  • :retry_base_delay (Float) — default: 0.3 —

    The base delay in seconds used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_jitter (Symbol) — default: :none —

    A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number. This option is only used in the legacy retry mode.

    @see https://www.awsarchitectureblog.com/2015/03/backoff.html

  • :retry_limit (Integer) — default: 3 —

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors, auth errors, endpoint discovery, and errors from expired credentials. This option is only used in the legacy retry mode.

  • :retry_max_delay (Integer) — default: 0 —

    The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_mode (String) — default: "standard" —

    Specifies which retry algorithm to use. Values are:

    • legacy - The pre-existing retry behavior.

    • standard - A standardized set of retry rules across the AWS SDKs. This includes support for retry quotas, which limit the number of unsuccessful retries a client can make. This is the default value if no retry mode is provided.

    • adaptive - A retry mode that includes all the functionality of standard mode along with automatic client side throttling.

  • :sdk_ua_app_id (String) —

    A unique and opaque application ID that is appended to the User-Agent header as app/sdk_ua_app_id. It should have a maximum length of 50. This variable is sourced from environment variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.

  • :secret_access_key (String)
  • :session_token (String)
  • :sigv4a_signing_region_set (Array) —

    A list of regions that should be signed with SigV4a signing. When not passed, a default :sigv4a_signing_region_set is searched for in the following locations:

    • Aws.config[:sigv4a_signing_region_set]
    • ENV['AWS_SIGV4A_SIGNING_REGION_SET']
    • ~/.aws/config
  • :stub_responses (Boolean) — default: false —

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled.

  • :telemetry_provider (Aws::Telemetry::TelemetryProviderBase) — default: Aws::Telemetry::NoOpTelemetryProvider —

    Allows you to provide a telemetry provider, which is used to emit telemetry data. By default, uses NoOpTelemetryProvider which will not record or emit any telemetry data. The SDK supports the following telemetry providers:

    • OpenTelemetry (OTel) - To use the OTel provider, install and require the opentelemetry-sdk gem and then, pass in an instance of a Aws::Telemetry::OTelProvider for telemetry provider.
  • :token_provider (Aws::TokenProvider) —

    Your Bearer token used for authentication. This can be any class that includes and implements Aws::TokenProvider, or instance of any one of the following classes:

    • Aws::StaticTokenProvider - Used for configuring static, non-refreshing tokens.

    • Aws::SSOTokenProvider - Used for loading tokens from AWS SSO using an access token generated from aws login.

    When :token_provider is not configured directly, the Aws::TokenProviderChain will be used to search for tokens configured for your profile in shared configuration files.

  • :use_dualstack_endpoint (Boolean) —

    When set to true, dualstack enabled endpoints (with .aws TLD) will be used if available.

  • :use_fips_endpoint (Boolean) —

    When set to true, fips compatible endpoints will be used if available. When a fips region is used, the region is normalized and this config is set to true.

  • :validate_params (Boolean) — default: true —

    When true, request parameters are validated before sending the request.

  • :endpoint_provider (Aws::AmplifyGen3::EndpointProvider) —

    The endpoint provider used to resolve endpoints. Any object that responds to #resolve_endpoint(parameters) where parameters is a Struct similar to Aws::AmplifyGen3::EndpointParameters.

  • :http_continue_timeout (Float) — default: 1 —

    The number of seconds to wait for a 100-continue response before sending the request body. This option has no effect unless the request has "Expect" header set to "100-continue". Defaults to nil which disables this behaviour. This value can safely be set per request on the session.

  • :http_idle_timeout (Float) — default: 5 —

    The number of seconds a connection is allowed to sit idle before it is considered stale. Stale connections are closed and removed from the pool before making a request.

  • :http_open_timeout (Float) — default: 15 —

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_proxy (URI::HTTP, String) —

    A proxy to send requests through. Formatted like 'http://proxy.com:123'.

  • :http_read_timeout (Float) — default: 60 —

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_wire_trace (Boolean) — default: false —

    When true, HTTP debug output will be sent to the :logger.

  • :on_chunk_received (Proc) —

    When a Proc object is provided, it will be used as callback when each chunk of the response body is received. It provides three arguments: the chunk, the number of bytes received, and the total number of bytes in the response (or nil if the server did not send a content-length).

  • :on_chunk_sent (Proc) —

    When a Proc object is provided, it will be used as callback when each chunk of the request body is sent. It provides three arguments: the chunk, the number of bytes read from the body, and the total number of bytes in the body.

  • :raise_response_errors (Boolean) — default: true —

    When true, response errors are raised.

  • :ssl_ca_bundle (String) —

    Full path to the SSL certificate authority bundle file that should be used when verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_directory (String) —

    Full path of the directory that contains the unbundled SSL certificate authority files for verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_store (String) —

    Sets the X509::Store to verify peer certificate.

  • :ssl_cert (OpenSSL::X509::Certificate) —

    Sets a client certificate when creating http connections.

  • :ssl_key (OpenSSL::PKey) —

    Sets a client key when creating http connections.

  • :ssl_timeout (Float) —

    Sets the SSL timeout in seconds

  • :ssl_verify_peer (Boolean) — default: true —

    When true, SSL peer certificates are verified when establishing a connection.



479
480
481
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 479

def initialize(*args)
  super
end

Instance Method Details

#accept_fork_pull_request_deployment(params = {}) ⇒ Types::AcceptForkPullRequestDeploymentResponse

Accepts a deployment for a specific commit from a forked-repository pull request. Each commit must be accepted before it can be deployed to a preview environment.

Examples:

Request syntax with placeholder values


resp = client.accept_fork_pull_request_deployment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  commit_sha: "CommitSha", # required
  pull_request_number: "PullRequestNumber",
})

Response structure


resp.outcome #=> String, one of "ACCEPTED", "ALREADY_ACCEPTED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :commit_sha (required, String) —

    The full commit SHA in the forked-repository pull request to accept.

  • :pull_request_number (String) —

    The number of the forked-repository pull request.

Returns:

See Also:



522
523
524
525
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 522

def accept_fork_pull_request_deployment(params = {}, options = {})
  req = build_request(:accept_fork_pull_request_deployment, params)
  req.send_request(options)
end

#cancel_gradual_rollout(params = {}) ⇒ Struct

Cancels an in-progress gradual rollout for an alias of an environment and returns traffic to the previous deployment.

Examples:

Request syntax with placeholder values


resp = client.cancel_gradual_rollout({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  alias_name: "AliasName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :alias_name (required, String) —

    The name of the alias.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



553
554
555
556
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 553

def cancel_gradual_rollout(params = {}, options = {})
  req = build_request(:cancel_gradual_rollout, params)
  req.send_request(options)
end

#create_app(params = {}) ⇒ Types::CreateAppResponse

Creates a new Amplify Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.create_app({
  app_name: "AppName", # required
  source_config: {
    git_hub_source: {
      repository_url: "AppGitHubSourceRequestRepositoryUrlString", # required
      production_branch: "AppGitHubSourceRequestProductionBranchString", # required
    },
    git_lab_source: {
      repository_url: "AppGitLabSourceRequestRepositoryUrlString", # required
      owner: "AppGitLabSourceRequestOwnerString", # required
      production_branch: "AppGitLabSourceRequestProductionBranchString", # required
    },
  },
  web: {
    build_config: {
      install_command: "AppBuildConfigRequestInstallCommandString",
      build_command: "AppBuildConfigRequestBuildCommandString",
      root_directory: "AppBuildConfigRequestRootDirectoryString",
      output_directory: "AppBuildConfigRequestOutputDirectoryString",
    },
  },
  backend: {
    migrations_directory: "AppBackendRequestMigrationsDirectoryString",
  },
  default_environments_configuration: [ # required
    {
      environment_type: "PRODUCTION", # required, accepts PRODUCTION, PREVIEW
      environment_permissions_config: { # required
        execution_role_arn: "EnvironmentRoleArn", # required
        permission_mode: "SCOPED", # accepts SCOPED, FULL
      },
      environment_network_config: {
        build_network_connector_arn: "NetworkConnectorArn",
        compute_network_connector_arn: "NetworkConnectorArn",
      },
      backend: {
        auth: "AuthConfigDocument",
        database: {
          max_backend_capacity_units: 1,
          backup_retention_days: 1,
        },
      },
    },
  ],
  tags: {
    "TagMapKeyString" => "TagMapValueString",
  },
})

Response structure


resp.app_arn #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :source_config (Types::AppSourceConfigRequest) —

    The source repository configuration for the app.

  • :web (Types::AppWebConfigRequest) —

    The web hosting settings for the app.

  • :backend (Types::AppBackendRequest) —

    The backend settings for the app. Omit this for a frontend-only app.

  • :default_environments_configuration (required, Array<Types::DefaultEnvironmentConfiguration>) —

    The settings for the Production and Preview environments that Amplify creates for the app. Specify one entry for each environment.

  • :tags (Hash<String,String>) —

    The tags to apply to the resource.

Returns:

See Also:



642
643
644
645
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 642

def create_app(params = {}, options = {})
  req = build_request(:create_app, params)
  req.send_request(options)
end

#create_deployment(params = {}) ⇒ Types::CreateDeploymentResponse

Creates a deployment for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.create_deployment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  source_config: {
    git_source: {
      git_ref: "DeploymentGitSourceRequestGitRefString", # required
    },
    manual_upload_source: {
      source_upload_id: "SourceUploadId", # required
      source_type: "SOURCE_CODE", # required, accepts SOURCE_CODE, PREBUILT_ARTIFACT
    },
  },
  description: "Description",
  tags: {
    "TagMapKeyString" => "TagMapValueString",
  },
  branch_arn: "BranchArn",
  publishable_key_action: "REUSE", # accepts REUSE, CREATE_NEW
})

Response structure


resp.deployment_id #=> String
resp.deployment_arn #=> String
resp.status #=> String, one of "QUEUED", "IN_PROGRESS", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :source_config (Types::DeploymentSourceConfigRequest) —

    The source to deploy.

  • :description (String) —

    The description of the deployment.

  • :tags (Hash<String,String>) —

    The tags to apply to the resource.

  • :branch_arn (String) —

    The Amazon Resource Name (ARN) of the branch to deploy to. This applies only to an app with a backend. The branch must belong to the same app and environment. In the Production environment, it must be the production branch. If you omit this, Amplify chooses the branch and creates it if it doesn't exist.

  • :publishable_key_action (String) —

    Specifies what the deployment does with the branch's publishable key, for an app with a backend. CREATE_NEW creates a new key that this deployment and later deployments use. The previous key stays active until you revoke it with RevokeApiKey. REUSE, the default, uses the branch's current key.

Returns:

See Also:



716
717
718
719
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 716

def create_deployment(params = {}, options = {})
  req = build_request(:create_deployment, params)
  req.send_request(options)
end

#create_domain_association(params = {}) ⇒ Types::CreateDomainAssociationResponse

Creates a domain association that connects a custom domain to a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.create_domain_association({
  app_name: "AppName", # required
  domain_name: "CustomDomainName", # required
  routing: { # required
    alias: {
      alias_arn: "AliasArn", # required
    },
    redirect: {
      target_url: "RedirectTargetUrl", # required
      status_code: "HTTP_301", # required, accepts HTTP_301, HTTP_302, HTTP_307, HTTP_308
    },
  },
  dns_management_type: "ROUTE_53", # required, accepts ROUTE_53, MANUAL, NS_DELEGATION
  tags: {
    "TagMapKeyString" => "TagMapValueString",
  },
})

Response structure


resp.domain_association_arn #=> String
resp.domain_status #=> String, one of "CREATING", "PENDING_CERTIFICATE_VALIDATION", "PENDING_OWNERSHIP_VALIDATION", "PENDING_DNS_VALIDATION", "PENDING_NS_DELEGATION", "PROVISIONING", "ACTIVE", "UPDATING", "DELETING", "CREATE_FAILED", "UPDATE_FAILED", "DELETE_FAILED"
resp.dns_records #=> Array
resp.dns_records[0].type #=> String, one of "CNAME", "TXT", "A", "AAAA", "NS"
resp.dns_records[0].name #=> String
resp.dns_records[0].value #=> String
resp.dns_records[0].purpose #=> String, one of "CERTIFICATE_VALIDATION", "OWNERSHIP_VERIFICATION", "NAMESERVER_DELEGATION", "DNS_VALIDATION"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :domain_name (required, String) —

    The fully qualified domain name.

  • :routing (required, Types::Routing) —

    The routing configuration for the domain.

  • :dns_management_type (required, String) —

    How DNS records for the domain are managed.

  • :tags (Hash<String,String>) —

    The tags to apply to the resource.

Returns:

See Also:



779
780
781
782
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 779

def create_domain_association(params = {}, options = {})
  req = build_request(:create_domain_association, params)
  req.send_request(options)
end

#create_environment(params = {}) ⇒ Types::CreateEnvironmentResponse

Creates an environment for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.create_environment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  environment_role_arn: "EnvironmentRoleArn", # required
  environment_role_permission_mode: "SCOPED", # accepts SCOPED, FULL
  source_config: {
    git_source: {
      branch_match_patterns: ["BranchMatchPatternsMemberString"], # required
      deployment_trigger_events: ["PUSH"], # accepts PUSH, PULL_REQUEST, FORK_PULL_REQUEST
    },
  },
  gradual_rollout_config: {
    preset_config: {
      preset: "ALL_AT_ONCE", # required, accepts ALL_AT_ONCE, CANARY_10_PERCENT_5_MINUTES, CANARY_10_PERCENT_15_MINUTES, CANARY_10_PERCENT_30_MINUTES, LINEAR_10_PERCENT_EVERY_1_MINUTE, LINEAR_10_PERCENT_EVERY_3_MINUTES, LINEAR_10_PERCENT_EVERY_10_MINUTES
    },
  },
  tags: {
    "TagMapKeyString" => "TagMapValueString",
  },
  web: {
    environment_alias_config: {
      routing_mode: "AUTO_ROUTE_TO_LATEST", # accepts AUTO_ROUTE_TO_LATEST, MANUAL
    },
    skew_protection_config: {
      status: "ENABLED", # accepts ENABLED, DISABLED
      cookie_max_age_seconds: 1,
    },
  },
  network_config: {
    build_network_connector_arn: "NetworkConnectorArn",
    compute_network_connector_arn: "NetworkConnectorArn",
  },
  backend: {
    auth: "AuthConfigDocument",
    database: {
      max_backend_capacity_units: 1,
      backup_retention_days: 1,
    },
  },
})

Response structure


resp.environment_arn #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :environment_role_arn (required, String) —

    The Amazon Resource Name (ARN) of the IAM role for the environment.

  • :environment_role_permission_mode (String) —

    The permission mode for the environment's IAM role.

  • :source_config (Types::EnvironmentSourceConfigRequest) —

    The source configuration for the environment.

  • :gradual_rollout_config (Types::GradualRolloutConfig) —

    The gradual rollout settings for the environment.

  • :tags (Hash<String,String>) —

    The tags to apply to the resource.

  • :web (Types::EnvironmentWebConfigRequest) —

    The web hosting settings for the environment.

  • :network_config (Types::EnvironmentNetworkConfigRequest) —

    The VPC network configuration for the environment.

  • :backend (Types::EnvironmentBackendConfigRequest) —

    The backend settings for the environment. You can specify this only when the app has a backend. If you omit this, the default authentication settings and the plan's default database settings are used.

Returns:

See Also:



874
875
876
877
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 874

def create_environment(params = {}, options = {})
  req = build_request(:create_environment, params)
  req.send_request(options)
end

#create_integration_configuration(params = {}) ⇒ Types::CreateIntegrationConfigurationResponse

Creates an integration configuration that makes an external resource available to app environments. Amplify Gen 3 handles IAM permissions and credential management automatically, so there are no role assumptions in your application code.

Examples:

Request syntax with placeholder values


resp = client.create_integration_configuration({
  integration_name: "IntegrationName", # required
  integration_type_id: "IntegrationTypeId", # required
  resource_configuration: {
    s3: {
      bucket_arn: "S3ConfigurationBucketArnString", # required
    },
    dsql: {
      cluster_arn: "DsqlConfigurationClusterArnString", # required
      database_user: "DsqlConfigurationDatabaseUserString", # required
    },
    bedrock: {
      region_name: "BedrockConfigurationRegionNameString", # required
      model_id: "BedrockConfigurationModelIdString",
    },
    custom: {
      resource_arn: "CustomConfigurationResourceArnString",
    },
  },
  tags: {
    "TagMapKeyString" => "TagMapValueString",
  },
  environment_variables: [
    {
      key: "EnvironmentVariableKey", # required
      key_override: "EnvironmentVariableKey",
      value: "EnvironmentVariableValue",
      type: "PLAINTEXT", # accepts PLAINTEXT, SENSITIVE
    },
  ],
})

Response structure


resp.integration_arn #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_name (required, String) —

    The name of the integration.

  • :integration_type_id (required, String) —

    The ID of the integration type.

  • :resource_configuration (Types::ResourceConfiguration) —

    The resource configuration for the integration.

  • :tags (Hash<String,String>) —

    The tags to apply to the resource.

  • :environment_variables (Array<Types::IntegrationEnvironmentVariableInput>) —

    The environment variables.

Returns:

See Also:



945
946
947
948
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 945

def create_integration_configuration(params = {}, options = {})
  req = build_request(:create_integration_configuration, params)
  req.send_request(options)
end

#create_integration_connection(params = {}) ⇒ Types::CreateIntegrationConnectionResponse

Creates a connection between an integration configuration and an environment.

Examples:

Request syntax with placeholder values


resp = client.create_integration_connection({
  integration_arn: "IntegrationArn", # required
  environment_arn: "EnvironmentArn", # required
})

Response structure


resp.connection_id #=> String
resp.integration_name #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_arn (required, String) —

    The Amazon Resource Name (ARN) of the integration configuration to connect.

  • :environment_arn (required, String) —

    The Amazon Resource Name (ARN) of the environment to connect the integration to.

Returns:

See Also:



982
983
984
985
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 982

def create_integration_connection(params = {}, options = {})
  req = build_request(:create_integration_connection, params)
  req.send_request(options)
end

#create_network_connector(params = {}) ⇒ Types::CreateNetworkConnectorResponse

Creates a network connector that provides a Gen 3 app with access to a virtual private cloud (VPC).

Examples:

Request syntax with placeholder values


resp = client.create_network_connector({
  network_connector_name: "NetworkConnectorName", # required
  subnet_ids: ["SubnetId"], # required
  security_group_ids: ["SecurityGroupId"], # required
  network_connector_role_arn: "NetworkConnectorRoleArn", # required
  tags: {
    "TagMapKeyString" => "TagMapValueString",
  },
})

Response structure


resp.status #=> String, one of "CREATING", "ACTIVE", "CREATE_FAILED", "UPDATING", "UPDATE_FAILED", "DELETING", "DELETE_FAILED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :network_connector_name (required, String) —

    The name of the network connector.

  • :subnet_ids (required, Array<String>) —

    The IDs of the subnets for the network connector. The network connector uses the virtual private cloud (VPC) that the subnets belong to.

  • :security_group_ids (required, Array<String>) —

    The IDs of the security groups for the network connector.

  • :network_connector_role_arn (required, String) —

    The Amazon Resource Name (ARN) of the IAM role for the network connector.

  • :tags (Hash<String,String>) —

    The tags to apply to the resource.

Returns:

See Also:



1032
1033
1034
1035
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1032

def create_network_connector(params = {}, options = {})
  req = build_request(:create_network_connector, params)
  req.send_request(options)
end

#create_source_upload(params = {}) ⇒ Types::CreateSourceUploadResponse

Creates a source upload and returns a presigned URL for uploading application source artifacts from .zip files.

Examples:

Request syntax with placeholder values


resp = client.create_source_upload({
  zip_upload: { # required
    digest: "Digest", # required
  },
})

Response structure


resp.source_upload_id #=> String
resp.zip_upload.digest #=> String
resp.zip_upload.upload_url #=> String
resp.zip_upload.url_expires_at #=> Time
resp.upload_expires_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

Returns:

See Also:



1069
1070
1071
1072
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1069

def create_source_upload(params = {}, options = {})
  req = build_request(:create_source_upload, params)
  req.send_request(options)
end

#delete_alias(params = {}) ⇒ Struct

Deletes an alias for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.delete_alias({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  alias_name: "AliasName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :alias_name (required, String) —

    The name of the alias.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1099
1100
1101
1102
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1099

def delete_alias(params = {}, options = {})
  req = build_request(:delete_alias, params)
  req.send_request(options)
end

#delete_app(params = {}) ⇒ Struct

Deletes a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.delete_app({
  app_name: "AppName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1121
1122
1123
1124
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1121

def delete_app(params = {}, options = {})
  req = build_request(:delete_app, params)
  req.send_request(options)
end

#delete_backend_from_app(params = {}) ⇒ Struct

Removes the backend from an app. The app remains as a frontend-only app. The request returns after the backend is detached from the app, and the backend and its branches are deleted asynchronously. This permanently deletes the backend's data. If the app has no backend, the request succeeds.

Examples:

Request syntax with placeholder values


resp = client.delete_backend_from_app({
  app_name: "AppName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1147
1148
1149
1150
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1147

def delete_backend_from_app(params = {}, options = {})
  req = build_request(:delete_backend_from_app, params)
  req.send_request(options)
end

#delete_branch(params = {}) ⇒ Struct

Deletes a branch of an environment and its data. The deletion happens asynchronously. You can't delete the production branch. You can delete other branches even while deployments use them.

Examples:

Request syntax with placeholder values


resp = client.delete_branch({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  branch_name: "BranchName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :branch_name (required, String) —

    The name of the branch to delete.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1179
1180
1181
1182
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1179

def delete_branch(params = {}, options = {})
  req = build_request(:delete_branch, params)
  req.send_request(options)
end

#delete_deployment(params = {}) ⇒ Struct

Deletes a deployment for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.delete_deployment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  deployment_id: "DeploymentId", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :deployment_id (required, String) —

    The ID of the deployment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1209
1210
1211
1212
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1209

def delete_deployment(params = {}, options = {})
  req = build_request(:delete_deployment, params)
  req.send_request(options)
end

#delete_domain_association(params = {}) ⇒ Types::DeleteDomainAssociationResponse

Deletes a domain association for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.delete_domain_association({
  app_name: "AppName", # required
  domain_name: "CustomDomainName", # required
})

Response structure


resp.domain_status #=> String, one of "CREATING", "PENDING_CERTIFICATE_VALIDATION", "PENDING_OWNERSHIP_VALIDATION", "PENDING_DNS_VALIDATION", "PENDING_NS_DELEGATION", "PROVISIONING", "ACTIVE", "UPDATING", "DELETING", "CREATE_FAILED", "UPDATE_FAILED", "DELETE_FAILED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :domain_name (required, String) —

    The fully qualified domain name.

Returns:

See Also:



1241
1242
1243
1244
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1241

def delete_domain_association(params = {}, options = {})
  req = build_request(:delete_domain_association, params)
  req.send_request(options)
end

#delete_environment(params = {}) ⇒ Struct

Deletes an environment for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.delete_environment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1267
1268
1269
1270
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1267

def delete_environment(params = {}, options = {})
  req = build_request(:delete_environment, params)
  req.send_request(options)
end

#delete_environment_variables(params = {}) ⇒ Struct

Deletes environment variables for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.delete_environment_variables({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  keys: ["EnvironmentVariableKey"], # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :keys (required, Array<String>) —

    The keys of the environment variables to delete.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1297
1298
1299
1300
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1297

def delete_environment_variables(params = {}, options = {})
  req = build_request(:delete_environment_variables, params)
  req.send_request(options)
end

#delete_git_connection(params = {}) ⇒ Struct

Deletes a Git connection, so that the service can no longer access repositories through it. This operation doesn't remove the app installation or authorization from your Git provider account. To remove them, use your Git provider's settings. If the connection doesn't exist, the operation succeeds and does nothing.

Examples:

Request syntax with placeholder values


resp = client.delete_git_connection({
  provider: "GITHUB", # required, accepts GITHUB, GITLAB
  owner: "GitOwnerName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :provider (required, String) —

    The Git provider.

  • :owner (required, String) —

    The account that the Git connection is for. The value depends on the provider:

    • For GitHub, specify the user or organization name.

    • For GitLab, specify the user name.

    To get this value, call ListGitConnections.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1334
1335
1336
1337
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1334

def delete_git_connection(params = {}, options = {})
  req = build_request(:delete_git_connection, params)
  req.send_request(options)
end

#delete_identity_provider_config(params = {}) ⇒ Struct

Deletes the identity provider configuration for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.delete_identity_provider_config({
  app_name: "AppName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1356
1357
1358
1359
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1356

def delete_identity_provider_config(params = {}, options = {})
  req = build_request(:delete_identity_provider_config, params)
  req.send_request(options)
end

#delete_integration_configuration(params = {}) ⇒ Struct

Deletes an integration configuration.

Examples:

Request syntax with placeholder values


resp = client.delete_integration_configuration({
  integration_name: "IntegrationName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_name (required, String) —

    The name of the integration.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1378
1379
1380
1381
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1378

def delete_integration_configuration(params = {}, options = {})
  req = build_request(:delete_integration_configuration, params)
  req.send_request(options)
end

#delete_integration_connection(params = {}) ⇒ Struct

Deletes an integration connection.

Examples:

Request syntax with placeholder values


resp = client.delete_integration_connection({
  connection_id: "ConnectionId", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :connection_id (required, String) —

    The ID of the integration connection.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1400
1401
1402
1403
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1400

def delete_integration_connection(params = {}, options = {})
  req = build_request(:delete_integration_connection, params)
  req.send_request(options)
end

#delete_network_connector(params = {}) ⇒ Types::DeleteNetworkConnectorResponse

Deletes a network connector.

Examples:

Request syntax with placeholder values


resp = client.delete_network_connector({
  network_connector_name: "NetworkConnectorName", # required
})

Response structure


resp.status #=> String, one of "CREATING", "ACTIVE", "CREATE_FAILED", "UPDATING", "UPDATE_FAILED", "DELETING", "DELETE_FAILED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :network_connector_name (required, String) —

    The name of the network connector.

Returns:

See Also:



1428
1429
1430
1431
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1428

def delete_network_connector(params = {}, options = {})
  req = build_request(:delete_network_connector, params)
  req.send_request(options)
end

#delete_source_upload(params = {}) ⇒ Struct

Deletes a source upload.

Examples:

Request syntax with placeholder values


resp = client.delete_source_upload({
  source_upload_id: "SourceUploadId", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :source_upload_id (required, String) —

    The ID of the source upload.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1450
1451
1452
1453
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1450

def delete_source_upload(params = {}, options = {})
  req = build_request(:delete_source_upload, params)
  req.send_request(options)
end

#disable_access_control(params = {}) ⇒ Struct

Disables access control for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.disable_access_control({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1476
1477
1478
1479
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1476

def disable_access_control(params = {}, options = {})
  req = build_request(:disable_access_control, params)
  req.send_request(options)
end

#enable_access_control(params = {}) ⇒ Types::EnableAccessControlResponse

Enables access control for an environment of a Gen 3 app so that only authorized users can access it.

Examples:

Request syntax with placeholder values


resp = client.enable_access_control({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  scope: "ALL_DEPLOYMENTS", # accepts ALL_DEPLOYMENTS, NON_ACTIVE_DEPLOYMENTS
  rule: {
    any_authenticated_user: {
    },
    user_claims: [
      {
        key: "AccessRuleConditionKeyString", # required
        operator: "EQUALS", # accepts EQUALS, CONTAINS, BEGINS_WITH, ENDS_WITH
        value: "AccessRuleConditionValueString", # required
      },
    ],
  },
  client_token: "ClientToken",
})

Response structure


resp.status #=> String, one of "ENABLING", "ENABLED", "ENABLE_FAILED", "UPDATING", "UPDATE_FAILED", "DISABLING", "DISABLED", "DISABLE_FAILED"
resp.status_reason #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :scope (String) —

    The scope that the access control configuration applies to.

  • :rule (Types::AccessControlRule) —

    The rule that determines which users are granted access.

  • :client_token (String) —

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Returns:

See Also:



1534
1535
1536
1537
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1534

def enable_access_control(params = {}, options = {})
  req = build_request(:enable_access_control, params)
  req.send_request(options)
end

#get_access_control(params = {}) ⇒ Types::GetAccessControlResponse

Retrieves the access control configuration for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.get_access_control({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
})

Response structure


resp.app_name #=> String
resp.environment_name #=> String
resp.provider_type #=> String, one of "OIDC", "IAM_IDENTITY_CENTER"
resp.scope #=> String, one of "ALL_DEPLOYMENTS", "NON_ACTIVE_DEPLOYMENTS"
resp.rule.user_claims #=> Array
resp.rule.user_claims[0].key #=> String
resp.rule.user_claims[0].operator #=> String, one of "EQUALS", "CONTAINS", "BEGINS_WITH", "ENDS_WITH"
resp.rule.user_claims[0].value #=> String
resp.status #=> String, one of "ENABLING", "ENABLED", "ENABLE_FAILED", "UPDATING", "UPDATE_FAILED", "DISABLING", "DISABLED", "DISABLE_FAILED"
resp.status_reason #=> String
resp.enabled_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

Returns:

See Also:



1586
1587
1588
1589
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1586

def get_access_control(params = {}, options = {})
  req = build_request(:get_access_control, params)
  req.send_request(options)
end

#get_alias(params = {}) ⇒ Types::GetAliasResponse

Retrieves an alias for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.get_alias({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  alias_name: "AliasName", # required
})

Response structure


resp.alias_name #=> String
resp.alias_arn #=> String
resp.type #=> String, one of "ENVIRONMENT", "BRANCH", "PULL_REQUEST"
resp.url #=> String
resp.routing_config #=> Array
resp.routing_config[0].deployment_id #=> String
resp.routing_config[0].weight #=> Integer
resp.gradual_rollout_config.preset_config.preset #=> String, one of "ALL_AT_ONCE", "CANARY_10_PERCENT_5_MINUTES", "CANARY_10_PERCENT_15_MINUTES", "CANARY_10_PERCENT_30_MINUTES", "LINEAR_10_PERCENT_EVERY_1_MINUTE", "LINEAR_10_PERCENT_EVERY_3_MINUTES", "LINEAR_10_PERCENT_EVERY_10_MINUTES"
resp.gradual_rollout_state.status #=> String, one of "IN_PROGRESS", "COMPLETED", "CANCELLED"
resp.gradual_rollout_state.source_routing_config #=> Array
resp.gradual_rollout_state.source_routing_config[0].deployment_id #=> String
resp.gradual_rollout_state.source_routing_config[0].weight #=> Integer
resp.gradual_rollout_state.target_routing_config #=> Array
resp.gradual_rollout_state.target_routing_config[0].deployment_id #=> String
resp.gradual_rollout_state.target_routing_config[0].weight #=> Integer
resp.gradual_rollout_state.schedule #=> Array
resp.gradual_rollout_state.schedule[0].weight #=> Integer
resp.gradual_rollout_state.schedule[0].effective_at #=> Time
resp.gradual_rollout_state.current_stage_index #=> Integer
resp.gradual_rollout_state.started_at #=> Time
resp.gradual_rollout_state.ended_at #=> Time
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :alias_name (required, String) —

    The name of the alias.

Returns:

See Also:



1652
1653
1654
1655
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1652

def get_alias(params = {}, options = {})
  req = build_request(:get_alias, params)
  req.send_request(options)
end

#get_api_key(params = {}) ⇒ Types::GetApiKeyResponse

Returns an API key for a branch, including the key value. The key value is a credential. Store it securely and don't log it.

Examples:

Request syntax with placeholder values


resp = client.get_api_key({
  branch_arn: "BranchArn", # required
  api_key_id: "ApiKeyId", # required
})

Response structure


resp.api_key #=> String
resp.api_key_id #=> String
resp.created_at #=> Time
resp.status #=> String, one of "ACTIVE", "INACTIVE"
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :branch_arn (required, String) —

    The Amazon Resource Name (ARN) of the branch that the API key belongs to.

  • :api_key_id (required, String) —

    The ID of the API key to return.

Returns:

See Also:



1694
1695
1696
1697
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1694

def get_api_key(params = {}, options = {})
  req = build_request(:get_api_key, params)
  req.send_request(options)
end

#get_app(params = {}) ⇒ Types::GetAppResponse

Retrieves a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.get_app({
  app_name: "AppName", # required
})

Response structure


resp.app_name #=> String
resp.app_arn #=> String
resp.source_config.git_hub_source.repository_url #=> String
resp.source_config.git_lab_source.repository_url #=> String
resp.source_config.git_lab_source.owner #=> String
resp.web.build_config.install_command #=> String
resp.web.build_config.build_command #=> String
resp.web.build_config.root_directory #=> String
resp.web.build_config.output_directory #=> String
resp.backend.migrations_directory #=> String
resp.backend.status #=> String, one of "READY", "CREATING", "DELETING", "PAUSING", "PAUSED", "RESUMING"
resp.backend.database_usage.last_used_at #=> Time
resp.backend.database_usage.monthly_backend_capacity_unit_hours #=> Float
resp.waf_configs #=> Array
resp.waf_configs[0].web_acl_arn #=> String
resp.waf_configs[0].waf_status #=> String, one of "ASSOCIATING", "ASSOCIATED", "ASSOCIATION_FAILED", "DISASSOCIATING", "DISASSOCIATION_FAILED"
resp.waf_configs[0].status_reason #=> String
resp.waf_configs[0].status_reason_code #=> String, one of "WEBACL_NOT_FOUND", "ASSOCIATION_LIMIT_EXCEEDED", "FIREWALL_UPDATE_TIMEOUT", "FIREWALL_UPDATE_FAILED", "INTERNAL_ERROR"
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

Returns:

See Also:



1748
1749
1750
1751
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1748

def get_app(params = {}, options = {})
  req = build_request(:get_app, params)
  req.send_request(options)
end

#get_branch(params = {}) ⇒ Types::GetBranchResponse

Returns information about a branch of an environment.

Examples:

Request syntax with placeholder values


resp = client.get_branch({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  branch_name: "BranchName", # required
})

Response structure


resp.app_name #=> String
resp.environment_name #=> String
resp.branch_name #=> String
resp.branch_arn #=> String
resp.git_branch_name #=> String
resp.created_at #=> Time
resp.backend.url #=> String
resp.backend.status #=> String, one of "READY", "CREATING", "DELETING", "FAILED_TO_CREATE", "PAUSING", "PAUSED", "RESUMING"
resp.backend.database_config.max_backend_capacity_units #=> Integer
resp.backend.database_config.backup_retention_days #=> Integer
resp.backend.auth #=> String
resp.backend.database_usage.storage_bytes #=> Integer
resp.backend.database_usage.connections #=> Integer
resp.backend.database_usage.last_used_at #=> Time
resp.backend.database_usage.sampled_at #=> Time
resp.backend.database_usage.monthly_backend_capacity_unit_hours #=> Float
resp.backend.database_connection.host #=> String
resp.backend.database_connection.port #=> Integer
resp.backend.database_connection.username #=> String
resp.backend.database_connection.database_name #=> String
resp.source_branch.branch_name #=> String
resp.source_branch.branch_arn #=> String
resp.source_branch.restore_to_time #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :branch_name (required, String) —

    The name of the branch.

Returns:

See Also:



1813
1814
1815
1816
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1813

def get_branch(params = {}, options = {})
  req = build_request(:get_branch, params)
  req.send_request(options)
end

#get_deployment(params = {}) ⇒ Types::GetDeploymentResponse

Retrieves a deployment for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.get_deployment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  deployment_id: "DeploymentId", # required
})

Response structure


resp.app_name #=> String
resp.deployment_id #=> String
resp.deployment_arn #=> String
resp.environment_name #=> String
resp.source_config.git_source.git_ref #=> String
resp.source_config.git_source.repository_url #=> String
resp.source_config.git_source.commit_id #=> String
resp.source_config.git_source.commit_message #=> String
resp.source_config.git_source.author #=> String
resp.source_config.manual_upload_source.source_upload_id #=> String
resp.source_config.manual_upload_source.source_type #=> String, one of "SOURCE_CODE", "PREBUILT_ARTIFACT"
resp.description #=> String
resp.status #=> String, one of "QUEUED", "IN_PROGRESS", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"
resp.domain_name #=> String
resp.aliases #=> Array
resp.aliases[0].alias_name #=> String
resp.aliases[0].alias_arn #=> String
resp.aliases[0].type #=> String, one of "ENVIRONMENT", "BRANCH", "PULL_REQUEST"
resp.aliases[0].url #=> String
resp.aliases[0].routing_config #=> Array
resp.aliases[0].routing_config[0].deployment_id #=> String
resp.aliases[0].routing_config[0].weight #=> Integer
resp.aliases[0].created_at #=> Time
resp.aliases[0].updated_at #=> Time
resp.environment_variables #=> Array
resp.environment_variables[0].key #=> String
resp.environment_variables[0].value #=> String
resp.environment_variables[0].type #=> String, one of "PLAINTEXT", "SENSITIVE"
resp.environment_variables[0].comment #=> String
resp.environment_variables[0].source_integration_arn #=> String
resp.environment_variables[0].scope #=> String, one of "BUILD", "RUNTIME", "ALL", "BACKEND"
resp.created_at #=> Time
resp.started_at #=> Time
resp.ended_at #=> Time
resp.expired_at #=> Time
resp.status_reason #=> String
resp.status_reason_code #=> String, one of "INTERNAL_SERVICE_ERROR", "BUILD_FAILED", "BUILD_TIMEOUT", "OUTPUT_DIRECTORY_NOT_FOUND", "GIT_CLONE_FAILED", "SOURCE_DOWNLOAD_FAILED", "CONFIG_RETRIEVAL_FAILED", "BINDING_RESOLUTION_FAILED", "RESOURCE_DELETED", "COLLAPSED", "AT_ACCOUNT_CONCURRENCY_LIMIT", "OTHER_DEPLOYMENT_IN_PROGRESS", "MIGRATION_FAILED", "BRANCH_LIMIT_EXCEEDED", "PUBLISHABLE_KEY_LIMIT_EXCEEDED", "ROLE_NOT_ASSUMABLE"
resp.session_policy #=> String
resp.branch.branch_name #=> String
resp.branch.branch_arn #=> String
resp.branch.backend.url #=> String
resp.branch.backend.publishable_key_id #=> String
resp.backend.migrations_directory #=> String
resp.backend.auth #=> String
resp.backend.database.max_backend_capacity_units #=> Integer
resp.backend.database.backup_retention_days #=> Integer
resp.steps.build.status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "SUCCEEDED", "FAILED"
resp.steps.build.started_at #=> Time
resp.steps.build.ended_at #=> Time
resp.steps.migration.status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "SUCCEEDED", "FAILED"
resp.steps.migration.started_at #=> Time
resp.steps.migration.ended_at #=> Time
resp.steps.migration.applied_migration_names #=> Array
resp.steps.migration.applied_migration_names[0] #=> String
resp.steps.migration.skipped_migration_names #=> Array
resp.steps.migration.skipped_migration_names[0] #=> String
resp.steps.deploy.status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "SUCCEEDED", "FAILED"
resp.steps.deploy.started_at #=> Time
resp.steps.deploy.ended_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :deployment_id (required, String) —

    The ID of the deployment.

Returns:

See Also:



1926
1927
1928
1929
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1926

def get_deployment(params = {}, options = {})
  req = build_request(:get_deployment, params)
  req.send_request(options)
end

#get_domain_association(params = {}) ⇒ Types::GetDomainAssociationResponse

Retrieves a domain association for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.get_domain_association({
  app_name: "AppName", # required
  domain_name: "CustomDomainName", # required
})

Response structure


resp.domain_association_arn #=> String
resp.domain_name #=> String
resp.app_name #=> String
resp.routing.alias.alias_arn #=> String
resp.routing.redirect.target_url #=> String
resp.routing.redirect.status_code #=> String, one of "HTTP_301", "HTTP_302", "HTTP_307", "HTTP_308"
resp.dns_management_type #=> String, one of "ROUTE_53", "MANUAL", "NS_DELEGATION"
resp.domain_status #=> String, one of "CREATING", "PENDING_CERTIFICATE_VALIDATION", "PENDING_OWNERSHIP_VALIDATION", "PENDING_DNS_VALIDATION", "PENDING_NS_DELEGATION", "PROVISIONING", "ACTIVE", "UPDATING", "DELETING", "CREATE_FAILED", "UPDATE_FAILED", "DELETE_FAILED"
resp.status_reason_code #=> String, one of "CERTIFICATE_VALIDATION_TIMEOUT", "DNS_VALIDATION_TIMEOUT", "OWNERSHIP_VALIDATION_TIMEOUT", "NS_DELEGATION_TIMEOUT", "CAA_RECORD_BLOCKED", "ALIAS_NOT_FOUND", "CLOUDFRONT_LIMIT_EXCEEDED", "CERTIFICATE_ISSUANCE_FAILED", "CLOUDFRONT_CONFIGURATION_FAILED", "CLOUDFRONT_UPDATE_FAILED", "CLOUDFRONT_CLEANUP_FAILED", "INTERNAL_ERROR"
resp.status_message #=> String
resp.ownership_verification_status #=> String, one of "PENDING_VERIFICATION", "VERIFIED", "FAILED"
resp.certificate_status #=> String, one of "PENDING_VERIFICATION", "ISSUED", "FAILED"
resp.dns_records #=> Array
resp.dns_records[0].type #=> String, one of "CNAME", "TXT", "A", "AAAA", "NS"
resp.dns_records[0].name #=> String
resp.dns_records[0].value #=> String
resp.dns_records[0].purpose #=> String, one of "CERTIFICATE_VALIDATION", "OWNERSHIP_VERIFICATION", "NAMESERVER_DELEGATION", "DNS_VALIDATION"
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :domain_name (required, String) —

    The fully qualified domain name.

Returns:

See Also:



1988
1989
1990
1991
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 1988

def get_domain_association(params = {}, options = {})
  req = build_request(:get_domain_association, params)
  req.send_request(options)
end

#get_domain_connect_url(params = {}) ⇒ Types::GetDomainConnectUrlResponse

Retrieves a signed URL you can use to configure DNS for a custom domain through a supported registrar.

Examples:

Request syntax with placeholder values


resp = client.get_domain_connect_url({
  app_name: "AppName", # required
  domain_name: "CustomDomainName", # required
  callback_url: "DomainConnectCallbackUrl",
})

Response structure


resp.status #=> String, one of "SUPPORTED", "UNSUPPORTED"
resp.signed_redirect_url #=> String
resp.provider_id #=> String
resp.provider_display_name #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :domain_name (required, String) —

    The domain name.

  • :callback_url (String) —

    The URL to return to after the registrar setup completes.

Returns:

See Also:



2031
2032
2033
2034
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2031

def get_domain_connect_url(params = {}, options = {})
  req = build_request(:get_domain_connect_url, params)
  req.send_request(options)
end

#get_environment(params = {}) ⇒ Types::GetEnvironmentResponse

Retrieves an environment for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.get_environment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
})

Response structure


resp.app_name #=> String
resp.environment_name #=> String
resp.environment_arn #=> String
resp.type #=> String, one of "PRODUCTION", "PREVIEW", "CUSTOM"
resp.environment_role_arn #=> String
resp.environment_role_permission_mode #=> String, one of "SCOPED", "FULL"
resp.source_config.git_source.branch_match_patterns #=> Array
resp.source_config.git_source.branch_match_patterns[0] #=> String
resp.source_config.git_source.deployment_trigger_events #=> Array
resp.source_config.git_source.deployment_trigger_events[0] #=> String, one of "PUSH", "PULL_REQUEST", "FORK_PULL_REQUEST"
resp.waf_log_configs #=> Array
resp.waf_log_configs[0].cloud_watch_logs_config.status #=> String, one of "ENABLED", "DISABLED"
resp.waf_log_configs[0].cloud_watch_logs_config.sampling_rate #=> Integer
resp.waf_log_configs[0].cloud_watch_logs_config.scope #=> String, one of "ALL_REQUESTS", "BLOCKED_ONLY"
resp.waf_log_configs[0].cloud_watch_logs_config.log_group_arn #=> String
resp.waf_log_configs[0].s3_config.status #=> String, one of "ENABLED", "DISABLED"
resp.waf_log_configs[0].s3_config.sampling_rate #=> Integer
resp.waf_log_configs[0].s3_config.scope #=> String, one of "ALL_REQUESTS", "BLOCKED_ONLY"
resp.waf_log_configs[0].s3_config.bucket_arn #=> String
resp.gradual_rollout_config.preset_config.preset #=> String, one of "ALL_AT_ONCE", "CANARY_10_PERCENT_5_MINUTES", "CANARY_10_PERCENT_15_MINUTES", "CANARY_10_PERCENT_30_MINUTES", "LINEAR_10_PERCENT_EVERY_1_MINUTE", "LINEAR_10_PERCENT_EVERY_3_MINUTES", "LINEAR_10_PERCENT_EVERY_10_MINUTES"
resp.web.access_log_config.cloud_watch_logs_config.status #=> String, one of "ENABLED", "DISABLED"
resp.web.access_log_config.cloud_watch_logs_config.sampling_rate #=> Integer
resp.web.access_log_config.cloud_watch_logs_config.log_group_arn #=> String
resp.web.access_log_config.s3_config.status #=> String, one of "ENABLED", "DISABLED"
resp.web.access_log_config.s3_config.sampling_rate #=> Integer
resp.web.access_log_config.s3_config.bucket_arn #=> String
resp.web.environment_alias_config.routing_mode #=> String, one of "AUTO_ROUTE_TO_LATEST", "MANUAL"
resp.web.skew_protection_config.status #=> String, one of "ENABLED", "DISABLED"
resp.web.skew_protection_config.cookie_max_age_seconds #=> Integer
resp.backend.auth #=> String
resp.backend.database.max_backend_capacity_units #=> Integer
resp.backend.database.backup_retention_days #=> Integer
resp.backend.database_log_config.cloud_watch_logs_config.status #=> String, one of "ENABLED", "DISABLED"
resp.backend.database_log_config.cloud_watch_logs_config.sampling_rate #=> Integer
resp.backend.database_log_config.cloud_watch_logs_config.log_group_arn #=> String
resp.backend.database_log_config.s3_config.status #=> String, one of "ENABLED", "DISABLED"
resp.backend.database_log_config.s3_config.sampling_rate #=> Integer
resp.backend.database_log_config.s3_config.bucket_arn #=> String
resp.network_config.build_network_connector_arn #=> String
resp.network_config.compute_network_connector_arn #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

Returns:

See Also:



2117
2118
2119
2120
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2117

def get_environment(params = {}, options = {})
  req = build_request(:get_environment, params)
  req.send_request(options)
end

#get_environments_for_network_connector(params = {}) ⇒ Types::GetEnvironmentsForNetworkConnectorResponse

Returns a list of the environments that have a network connector.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_environments_for_network_connector({
  network_connector_name: "NetworkConnectorName", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.connector_references #=> Array
resp.connector_references[0].environment_name #=> String
resp.connector_references[0].environment_arn #=> String
resp.connector_references[0].app_name #=> String
resp.connector_references[0].app_arn #=> String
resp.connector_references[0].connection_types #=> Array
resp.connector_references[0].connection_types[0] #=> String, one of "BUILD", "COMPUTE"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :network_connector_name (required, String) —

    The name of the network connector.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



2164
2165
2166
2167
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2164

def get_environments_for_network_connector(params = {}, options = {})
  req = build_request(:get_environments_for_network_connector, params)
  req.send_request(options)
end

#get_file(params = {}) ⇒ Types::GetFileResponse

Gets the contents of a file from a repository branch. Files can be up to 1 MiB. The AWS Management Console uses this operation when you create an app from a repository. To view files in detail, use your Git provider.

Examples:

Request syntax with placeholder values


resp = client.get_file({
  provider: "GITHUB", # required, accepts GITHUB, GITLAB
  owner: "GitOwnerName", # required
  repository_name: "GitRepositoryName",
  repository_path: "GitRepositoryPath", # required
  file_path: "GitFilePath", # required
  branch: "GitBranchName", # required
})

Response structure


resp.file_path #=> String
resp.content #=> String
resp.sha #=> String
resp.size #=> Integer

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :provider (required, String) —

    The Git provider.

  • :owner (required, String) —

    The account that the Git connection is for. The value depends on the provider:

    • For GitHub, specify the user or organization name.

    • For GitLab, specify the user name.

    To get this value, call ListGitConnections.

  • :repository_name (String) —

    The name of the repository, which is the last segment of RepositoryPath.

  • :repository_path (required, String) —

    The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.

  • :file_path (required, String) —

    The path of the file, relative to the root of the repository, for example package.json.

  • :branch (required, String) —

    The name of the branch to read from.

Returns:

See Also:



2232
2233
2234
2235
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2232

def get_file(params = {}, options = {})
  req = build_request(:get_file, params)
  req.send_request(options)
end

#get_folder(params = {}) ⇒ Types::GetFolderResponse

Lists the files and subfolders directly inside a folder of a repository branch. The AWS Management Console uses this operation when you create an app from a repository. To browse a repository in detail, use your Git provider.

Examples:

Request syntax with placeholder values


resp = client.get_folder({
  provider: "GITHUB", # required, accepts GITHUB, GITLAB
  owner: "GitOwnerName", # required
  repository_name: "GitRepositoryName",
  repository_path: "GitRepositoryPath", # required
  folder_path: "GitFilePath", # required
  branch: "GitBranchName", # required
})

Response structure


resp.folder_path #=> String
resp.sub_folders #=> Array
resp.sub_folders[0].absolute_path #=> String
resp.sub_folders[0].relative_path #=> String
resp.files #=> Array
resp.files[0].absolute_path #=> String
resp.files[0].relative_path #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :provider (required, String) —

    The Git provider.

  • :owner (required, String) —

    The account that the Git connection is for. The value depends on the provider:

    • For GitHub, specify the user or organization name.

    • For GitLab, specify the user name.

    To get this value, call ListGitConnections.

  • :repository_name (String) —

    The name of the repository, which is the last segment of RepositoryPath.

  • :repository_path (required, String) —

    The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.

  • :folder_path (required, String) —

    The path of the folder, relative to the root of the repository, for example src/app. To list the root of the repository, use /.

  • :branch (required, String) —

    The name of the branch to read from.

Returns:

See Also:



2302
2303
2304
2305
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2302

def get_folder(params = {}, options = {})
  req = build_request(:get_folder, params)
  req.send_request(options)
end

#get_identity_provider_config(params = {}) ⇒ Types::GetIdentityProviderConfigResponse

Retrieves the identity provider configuration for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.get_identity_provider_config({
  app_name: "AppName", # required
})

Response structure


resp.app_name #=> String
resp.identity_provider_name #=> String
resp.identity_provider_config.oidc.issuer_url #=> String
resp.identity_provider_config.oidc.client_id #=> String
resp.identity_provider_config.oidc.token_type #=> String, one of "ID", "ACCESS"
resp.identity_provider_config.oidc.token_validations #=> Array
resp.identity_provider_config.oidc.token_validations[0] #=> String
resp.identity_provider_config.oidc.authorization_endpoint #=> String
resp.identity_provider_config.oidc.token_endpoint #=> String
resp.identity_provider_config.oidc.grant_type #=> String, one of "CODE", "CODE_WITH_PKCE"
resp.identity_provider_config.oidc.refresh_token_strategy #=> String, one of "OFFLINE_ACCESS_SCOPE", "NO_SCOPE"
resp.identity_provider_config.oidc.authorize_request_params #=> Hash
resp.identity_provider_config.oidc.authorize_request_params["String"] #=> String
resp.identity_provider_config.oidc.token_request_params #=> Hash
resp.identity_provider_config.oidc.token_request_params["String"] #=> String
resp.identity_provider_config.iam_identity_center.instance_arn #=> String
resp.identity_provider_config.iam_identity_center.group_id #=> String
resp.status #=> String, one of "ACTIVE", "UPDATING", "ROLLED_BACK"
resp.status_reason #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

Returns:

See Also:



2356
2357
2358
2359
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2356

def get_identity_provider_config(params = {}, options = {})
  req = build_request(:get_identity_provider_config, params)
  req.send_request(options)
end

#get_integration_configuration(params = {}) ⇒ Types::GetIntegrationConfigurationResponse

Retrieves an integration configuration.

Examples:

Request syntax with placeholder values


resp = client.get_integration_configuration({
  integration_name: "IntegrationName", # required
})

Response structure


resp.integration_name #=> String
resp.integration_arn #=> String
resp.integration_type_id #=> String
resp.resource_configuration.s3.bucket_arn #=> String
resp.resource_configuration.dsql.cluster_arn #=> String
resp.resource_configuration.dsql.database_user #=> String
resp.resource_configuration.bedrock.region_name #=> String
resp.resource_configuration.bedrock.model_id #=> String
resp.resource_configuration.custom.resource_arn #=> String
resp.created_at #=> Time
resp.updated_at #=> Time
resp.environment_variables #=> Array
resp.environment_variables[0].key #=> String
resp.environment_variables[0].key_override #=> String
resp.environment_variables[0].value #=> String
resp.environment_variables[0].type #=> String, one of "PLAINTEXT", "SENSITIVE"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_name (required, String) —

    The name of the integration.

Returns:

See Also:



2405
2406
2407
2408
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2405

def get_integration_configuration(params = {}, options = {})
  req = build_request(:get_integration_configuration, params)
  req.send_request(options)
end

#get_integration_connection(params = {}) ⇒ Types::GetIntegrationConnectionResponse

Retrieves an integration connection.

Examples:

Request syntax with placeholder values


resp = client.get_integration_connection({
  connection_id: "ConnectionId", # required
})

Response structure


resp.connection_id #=> String
resp.integration_name #=> String
resp.integration_arn #=> String
resp.environment_arn #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :connection_id (required, String) —

    The ID of the integration connection.

Returns:

See Also:



2443
2444
2445
2446
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2443

def get_integration_connection(params = {}, options = {})
  req = build_request(:get_integration_connection, params)
  req.send_request(options)
end

#get_network_connector(params = {}) ⇒ Types::GetNetworkConnectorResponse

Retrieves a network connector.

Examples:

Request syntax with placeholder values


resp = client.get_network_connector({
  network_connector_name: "NetworkConnectorName", # required
})

Response structure


resp.network_connector_name #=> String
resp.network_connector_arn #=> String
resp.subnet_ids #=> Array
resp.subnet_ids[0] #=> String
resp.security_group_ids #=> Array
resp.security_group_ids[0] #=> String
resp.network_connector_role_arn #=> String
resp.status #=> String, one of "CREATING", "ACTIVE", "CREATE_FAILED", "UPDATING", "UPDATE_FAILED", "DELETING", "DELETE_FAILED"
resp.status_reason #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :network_connector_name (required, String) —

    The name of the network connector.

Returns:

See Also:



2489
2490
2491
2492
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2489

def get_network_connector(params = {}, options = {})
  req = build_request(:get_network_connector, params)
  req.send_request(options)
end

#get_restore_window(params = {}) ⇒ Types::GetRestoreWindowResponse

Returns the point-in-time restore window for the production branch. The window is the range of times that you can specify in a RestoreBranch request. The latest restorable time advances continuously. If no restore window is available yet, for example because the production branch has no completed deployment, the response omits both times.

Examples:

Request syntax with placeholder values


resp = client.get_restore_window({
  branch_arn: "BranchArn", # required
})

Response structure


resp.earliest_restorable_time #=> Time
resp.latest_restorable_time #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :branch_arn (required, String) —

    The Amazon Resource Name (ARN) of the production branch of the Production environment. Other branches can't be restored.

Returns:

See Also:



2525
2526
2527
2528
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2525

def get_restore_window(params = {}, options = {})
  req = build_request(:get_restore_window, params)
  req.send_request(options)
end

#get_source_upload(params = {}) ⇒ Types::GetSourceUploadResponse

Retrieves a source upload.

Examples:

Request syntax with placeholder values


resp = client.get_source_upload({
  source_upload_id: "SourceUploadId", # required
})

Response structure


resp.source_upload_id #=> String
resp.zip_upload.digest #=> String
resp.zip_upload.upload_url #=> String
resp.zip_upload.url_expires_at #=> Time
resp.created_at #=> Time
resp.upload_expires_at #=> Time
resp.size_in_bytes #=> Integer

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :source_upload_id (required, String) —

    The ID of the source upload.

Returns:

See Also:



2563
2564
2565
2566
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2563

def get_source_upload(params = {}, options = {})
  req = build_request(:get_source_upload, params)
  req.send_request(options)
end

#list_access_controls(params = {}) ⇒ Types::ListAccessControlsResponse

Returns a list of the access control configurations for a Gen 3 app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_access_controls({
  app_name: "AppName", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.access_controls #=> Array
resp.access_controls[0].environment_name #=> String
resp.access_controls[0].provider_type #=> String, one of "OIDC", "IAM_IDENTITY_CENTER"
resp.access_controls[0].scope #=> String, one of "ALL_DEPLOYMENTS", "NON_ACTIVE_DEPLOYMENTS"
resp.access_controls[0].rule.user_claims #=> Array
resp.access_controls[0].rule.user_claims[0].key #=> String
resp.access_controls[0].rule.user_claims[0].operator #=> String, one of "EQUALS", "CONTAINS", "BEGINS_WITH", "ENDS_WITH"
resp.access_controls[0].rule.user_claims[0].value #=> String
resp.access_controls[0].status #=> String, one of "ENABLING", "ENABLED", "ENABLE_FAILED", "UPDATING", "UPDATE_FAILED", "DISABLING", "DISABLED", "DISABLE_FAILED"
resp.access_controls[0].enabled_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



2613
2614
2615
2616
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2613

def list_access_controls(params = {}, options = {})
  req = build_request(:list_access_controls, params)
  req.send_request(options)
end

#list_aliases(params = {}) ⇒ Types::ListAliasesResponse

Returns a list of the aliases for an environment of a Gen 3 app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_aliases({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  next_token: "NextToken",
  max_results: 1,
})

Response structure


resp.aliases #=> Array
resp.aliases[0].alias_name #=> String
resp.aliases[0].alias_arn #=> String
resp.aliases[0].type #=> String, one of "ENVIRONMENT", "BRANCH", "PULL_REQUEST"
resp.aliases[0].url #=> String
resp.aliases[0].routing_config #=> Array
resp.aliases[0].routing_config[0].deployment_id #=> String
resp.aliases[0].routing_config[0].weight #=> Integer
resp.aliases[0].created_at #=> Time
resp.aliases[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

Returns:

See Also:



2667
2668
2669
2670
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2667

def list_aliases(params = {}, options = {})
  req = build_request(:list_aliases, params)
  req.send_request(options)
end

#list_api_keys(params = {}) ⇒ Types::ListApiKeysResponse

Returns a list of the API keys for a branch. The response includes only the metadata for each key, not the key value. To get the value of a key, use GetApiKey.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_api_keys({
  branch_arn: "BranchArn", # required
  status: "ACTIVE", # accepts ACTIVE, INACTIVE
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.api_keys #=> Array
resp.api_keys[0].api_key_id #=> String
resp.api_keys[0].status #=> String, one of "ACTIVE", "INACTIVE"
resp.api_keys[0].created_at #=> Time
resp.api_keys[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :branch_arn (required, String) —

    The Amazon Resource Name (ARN) of the branch to list the API keys for.

  • :status (String) —

    The status to filter by. If you specify a status, the response includes only the keys that have that status. If you omit this, the response includes keys in every status.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



2720
2721
2722
2723
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2720

def list_api_keys(params = {}, options = {})
  req = build_request(:list_api_keys, params)
  req.send_request(options)
end

#list_apps(params = {}) ⇒ Types::ListAppsResponse

Returns a list of the existing Gen 3 apps.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_apps({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.apps #=> Array
resp.apps[0].app_name #=> String
resp.apps[0].app_arn #=> String
resp.apps[0].source_config.git_hub_source.repository_url #=> String
resp.apps[0].source_config.git_lab_source.repository_url #=> String
resp.apps[0].source_config.git_lab_source.owner #=> String
resp.apps[0].created_at #=> Time
resp.apps[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



2764
2765
2766
2767
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2764

def list_apps(params = {}, options = {})
  req = build_request(:list_apps, params)
  req.send_request(options)
end

#list_branches(params = {}) ⇒ Types::ListBranchesResponse

Returns a list of the branches for an environment.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_branches({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  next_token: "NextToken",
  max_results: 1,
})

Response structure


resp.branches #=> Array
resp.branches[0].branch_name #=> String
resp.branches[0].branch_arn #=> String
resp.branches[0].git_branch_name #=> String
resp.branches[0].created_at #=> Time
resp.branches[0].source_branch.branch_name #=> String
resp.branches[0].source_branch.branch_arn #=> String
resp.branches[0].source_branch.restore_to_time #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

Returns:

See Also:



2816
2817
2818
2819
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2816

def list_branches(params = {}, options = {})
  req = build_request(:list_branches, params)
  req.send_request(options)
end

#list_deployments_for_app(params = {}) ⇒ Types::ListDeploymentsForAppResponse

Returns a list of the deployments for a Gen 3 app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_deployments_for_app({
  app_name: "AppName", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.deployments #=> Array
resp.deployments[0].app_name #=> String
resp.deployments[0].deployment_id #=> String
resp.deployments[0].deployment_arn #=> String
resp.deployments[0].environment_name #=> String
resp.deployments[0].status #=> String, one of "QUEUED", "IN_PROGRESS", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"
resp.deployments[0].source_config.git_source.git_ref #=> String
resp.deployments[0].source_config.git_source.repository_url #=> String
resp.deployments[0].source_config.git_source.commit_id #=> String
resp.deployments[0].source_config.git_source.commit_message #=> String
resp.deployments[0].source_config.git_source.author #=> String
resp.deployments[0].source_config.manual_upload_source.source_upload_id #=> String
resp.deployments[0].source_config.manual_upload_source.source_type #=> String, one of "SOURCE_CODE", "PREBUILT_ARTIFACT"
resp.deployments[0].description #=> String
resp.deployments[0].domain_name #=> String
resp.deployments[0].created_at #=> Time
resp.deployments[0].started_at #=> Time
resp.deployments[0].ended_at #=> Time
resp.deployments[0].expired_at #=> Time
resp.deployments[0].status_reason #=> String
resp.deployments[0].status_reason_code #=> String, one of "INTERNAL_SERVICE_ERROR", "BUILD_FAILED", "BUILD_TIMEOUT", "OUTPUT_DIRECTORY_NOT_FOUND", "GIT_CLONE_FAILED", "SOURCE_DOWNLOAD_FAILED", "CONFIG_RETRIEVAL_FAILED", "BINDING_RESOLUTION_FAILED", "RESOURCE_DELETED", "COLLAPSED", "AT_ACCOUNT_CONCURRENCY_LIMIT", "OTHER_DEPLOYMENT_IN_PROGRESS", "MIGRATION_FAILED", "BRANCH_LIMIT_EXCEEDED", "PUBLISHABLE_KEY_LIMIT_EXCEEDED", "ROLE_NOT_ASSUMABLE"
resp.deployments[0].branch_name #=> String
resp.deployments[0].branch_arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



2879
2880
2881
2882
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2879

def list_deployments_for_app(params = {}, options = {})
  req = build_request(:list_deployments_for_app, params)
  req.send_request(options)
end

#list_deployments_for_environment(params = {}) ⇒ Types::ListDeploymentsForEnvironmentResponse

Returns a list of the deployments for an environment of a Gen 3 app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_deployments_for_environment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.deployments #=> Array
resp.deployments[0].app_name #=> String
resp.deployments[0].deployment_id #=> String
resp.deployments[0].deployment_arn #=> String
resp.deployments[0].environment_name #=> String
resp.deployments[0].status #=> String, one of "QUEUED", "IN_PROGRESS", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"
resp.deployments[0].source_config.git_source.git_ref #=> String
resp.deployments[0].source_config.git_source.repository_url #=> String
resp.deployments[0].source_config.git_source.commit_id #=> String
resp.deployments[0].source_config.git_source.commit_message #=> String
resp.deployments[0].source_config.git_source.author #=> String
resp.deployments[0].source_config.manual_upload_source.source_upload_id #=> String
resp.deployments[0].source_config.manual_upload_source.source_type #=> String, one of "SOURCE_CODE", "PREBUILT_ARTIFACT"
resp.deployments[0].description #=> String
resp.deployments[0].domain_name #=> String
resp.deployments[0].created_at #=> Time
resp.deployments[0].started_at #=> Time
resp.deployments[0].ended_at #=> Time
resp.deployments[0].expired_at #=> Time
resp.deployments[0].status_reason #=> String
resp.deployments[0].status_reason_code #=> String, one of "INTERNAL_SERVICE_ERROR", "BUILD_FAILED", "BUILD_TIMEOUT", "OUTPUT_DIRECTORY_NOT_FOUND", "GIT_CLONE_FAILED", "SOURCE_DOWNLOAD_FAILED", "CONFIG_RETRIEVAL_FAILED", "BINDING_RESOLUTION_FAILED", "RESOURCE_DELETED", "COLLAPSED", "AT_ACCOUNT_CONCURRENCY_LIMIT", "OTHER_DEPLOYMENT_IN_PROGRESS", "MIGRATION_FAILED", "BRANCH_LIMIT_EXCEEDED", "PUBLISHABLE_KEY_LIMIT_EXCEEDED", "ROLE_NOT_ASSUMABLE"
resp.deployments[0].branch_name #=> String
resp.deployments[0].branch_arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



2946
2947
2948
2949
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2946

def list_deployments_for_environment(params = {}, options = {})
  req = build_request(:list_deployments_for_environment, params)
  req.send_request(options)
end

#list_domain_associations_for_account(params = {}) ⇒ Types::ListDomainAssociationsForAccountResponse

Returns a list of the domain associations for all Gen 3 apps in the account.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.domain_associations #=> Array
resp.domain_associations[0].domain_name #=> String
resp.domain_associations[0].app_name #=> String
resp.domain_associations[0].domain_status #=> String, one of "CREATING", "PENDING_CERTIFICATE_VALIDATION", "PENDING_OWNERSHIP_VALIDATION", "PENDING_DNS_VALIDATION", "PENDING_NS_DELEGATION", "PROVISIONING", "ACTIVE", "UPDATING", "DELETING", "CREATE_FAILED", "UPDATE_FAILED", "DELETE_FAILED"
resp.domain_associations[0].routing.alias.alias_arn #=> String
resp.domain_associations[0].routing.redirect.target_url #=> String
resp.domain_associations[0].routing.redirect.status_code #=> String, one of "HTTP_301", "HTTP_302", "HTTP_307", "HTTP_308"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



2990
2991
2992
2993
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 2990

def (params = {}, options = {})
  req = build_request(:list_domain_associations_for_account, params)
  req.send_request(options)
end

#list_domain_associations_for_app(params = {}) ⇒ Types::ListDomainAssociationsForAppResponse

Returns a list of the domain associations for a Gen 3 app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_domain_associations_for_app({
  app_name: "AppName", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.domain_associations #=> Array
resp.domain_associations[0].domain_association_arn #=> String
resp.domain_associations[0].domain_name #=> String
resp.domain_associations[0].domain_status #=> String, one of "CREATING", "PENDING_CERTIFICATE_VALIDATION", "PENDING_OWNERSHIP_VALIDATION", "PENDING_DNS_VALIDATION", "PENDING_NS_DELEGATION", "PROVISIONING", "ACTIVE", "UPDATING", "DELETING", "CREATE_FAILED", "UPDATE_FAILED", "DELETE_FAILED"
resp.domain_associations[0].routing.alias.alias_arn #=> String
resp.domain_associations[0].routing.redirect.target_url #=> String
resp.domain_associations[0].routing.redirect.status_code #=> String, one of "HTTP_301", "HTTP_302", "HTTP_307", "HTTP_308"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3037
3038
3039
3040
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3037

def list_domain_associations_for_app(params = {}, options = {})
  req = build_request(:list_domain_associations_for_app, params)
  req.send_request(options)
end

#list_environment_variables(params = {}) ⇒ Types::ListEnvironmentVariablesResponse

Returns a list of the environment variables for an environment of a Gen 3 app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_environment_variables({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.environment_variables #=> Array
resp.environment_variables[0].key #=> String
resp.environment_variables[0].value #=> String
resp.environment_variables[0].type #=> String, one of "PLAINTEXT", "SENSITIVE"
resp.environment_variables[0].comment #=> String
resp.environment_variables[0].source_integration_arn #=> String
resp.environment_variables[0].scope #=> String, one of "BUILD", "RUNTIME", "ALL", "BACKEND"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3089
3090
3091
3092
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3089

def list_environment_variables(params = {}, options = {})
  req = build_request(:list_environment_variables, params)
  req.send_request(options)
end

#list_environments(params = {}) ⇒ Types::ListEnvironmentsResponse

Returns a list of the environments for a Gen 3 app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_environments({
  app_name: "AppName", # required
  next_token: "NextToken",
  max_results: 1,
})

Response structure


resp.environments #=> Array
resp.environments[0].app_name #=> String
resp.environments[0].environment_name #=> String
resp.environments[0].environment_arn #=> String
resp.environments[0].type #=> String, one of "PRODUCTION", "PREVIEW", "CUSTOM"
resp.environments[0].source_config.git_source.branch_match_patterns #=> Array
resp.environments[0].source_config.git_source.branch_match_patterns[0] #=> String
resp.environments[0].source_config.git_source.deployment_trigger_events #=> Array
resp.environments[0].source_config.git_source.deployment_trigger_events[0] #=> String, one of "PUSH", "PULL_REQUEST", "FORK_PULL_REQUEST"
resp.environments[0].waf_log_configs #=> Array
resp.environments[0].waf_log_configs[0].cloud_watch_logs_config.status #=> String, one of "ENABLED", "DISABLED"
resp.environments[0].waf_log_configs[0].cloud_watch_logs_config.sampling_rate #=> Integer
resp.environments[0].waf_log_configs[0].cloud_watch_logs_config.scope #=> String, one of "ALL_REQUESTS", "BLOCKED_ONLY"
resp.environments[0].waf_log_configs[0].cloud_watch_logs_config.log_group_arn #=> String
resp.environments[0].waf_log_configs[0].s3_config.status #=> String, one of "ENABLED", "DISABLED"
resp.environments[0].waf_log_configs[0].s3_config.sampling_rate #=> Integer
resp.environments[0].waf_log_configs[0].s3_config.scope #=> String, one of "ALL_REQUESTS", "BLOCKED_ONLY"
resp.environments[0].waf_log_configs[0].s3_config.bucket_arn #=> String
resp.environments[0].web.access_log_config.cloud_watch_logs_config.status #=> String, one of "ENABLED", "DISABLED"
resp.environments[0].web.access_log_config.cloud_watch_logs_config.sampling_rate #=> Integer
resp.environments[0].web.access_log_config.cloud_watch_logs_config.log_group_arn #=> String
resp.environments[0].web.access_log_config.s3_config.status #=> String, one of "ENABLED", "DISABLED"
resp.environments[0].web.access_log_config.s3_config.sampling_rate #=> Integer
resp.environments[0].web.access_log_config.s3_config.bucket_arn #=> String
resp.environments[0].backend.database_log_config.cloud_watch_logs_config.status #=> String, one of "ENABLED", "DISABLED"
resp.environments[0].backend.database_log_config.cloud_watch_logs_config.sampling_rate #=> Integer
resp.environments[0].backend.database_log_config.cloud_watch_logs_config.log_group_arn #=> String
resp.environments[0].backend.database_log_config.s3_config.status #=> String, one of "ENABLED", "DISABLED"
resp.environments[0].backend.database_log_config.s3_config.sampling_rate #=> Integer
resp.environments[0].backend.database_log_config.s3_config.bucket_arn #=> String
resp.environments[0].created_at #=> Time
resp.environments[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

Returns:

See Also:



3161
3162
3163
3164
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3161

def list_environments(params = {}, options = {})
  req = build_request(:list_environments, params)
  req.send_request(options)
end

#list_git_branches(params = {}) ⇒ Types::ListGitBranchesResponse

Lists the branches of a repository. The AWS Management Console uses this operation to show the branches that you can choose from when you create an app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_git_branches({
  provider: "GITHUB", # required, accepts GITHUB, GITLAB
  owner: "GitOwnerName", # required
  repository_name: "GitRepositoryName",
  repository_path: "GitRepositoryPath", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.branches #=> Array
resp.branches[0].name #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :provider (required, String) —

    The Git provider.

  • :owner (required, String) —

    The account that the Git connection is for. The value depends on the provider:

    • For GitHub, specify the user or organization name.

    • For GitLab, specify the user name.

    To get this value, call ListGitConnections.

  • :repository_name (String) —

    The name of the repository, which is the last segment of RepositoryPath.

  • :repository_path (required, String) —

    The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3227
3228
3229
3230
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3227

def list_git_branches(params = {}, options = {})
  req = build_request(:list_git_branches, params)
  req.send_request(options)
end

#list_git_connections(params = {}) ⇒ Types::ListGitConnectionsResponse

Lists the GitHub and GitLab accounts that are connected to your AWS account in this Region.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_git_connections({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.git_connections #=> Array
resp.git_connections[0].provider #=> String, one of "GITHUB", "GITLAB"
resp.git_connections[0].owner #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3267
3268
3269
3270
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3267

def list_git_connections(params = {}, options = {})
  req = build_request(:list_git_connections, params)
  req.send_request(options)
end

#list_integration_configurations(params = {}) ⇒ Types::ListIntegrationConfigurationsResponse

Returns a list of the integration configurations in the account.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_integration_configurations({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.integration_configurations #=> Array
resp.integration_configurations[0].integration_name #=> String
resp.integration_configurations[0].integration_arn #=> String
resp.integration_configurations[0].integration_type_id #=> String
resp.integration_configurations[0].resource_configuration.s3.bucket_arn #=> String
resp.integration_configurations[0].resource_configuration.dsql.cluster_arn #=> String
resp.integration_configurations[0].resource_configuration.dsql.database_user #=> String
resp.integration_configurations[0].resource_configuration.bedrock.region_name #=> String
resp.integration_configurations[0].resource_configuration.bedrock.model_id #=> String
resp.integration_configurations[0].resource_configuration.custom.resource_arn #=> String
resp.integration_configurations[0].created_at #=> Time
resp.integration_configurations[0].updated_at #=> Time
resp.integration_configurations[0].environment_variables #=> Array
resp.integration_configurations[0].environment_variables[0].key #=> String
resp.integration_configurations[0].environment_variables[0].key_override #=> String
resp.integration_configurations[0].environment_variables[0].value #=> String
resp.integration_configurations[0].environment_variables[0].type #=> String, one of "PLAINTEXT", "SENSITIVE"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3320
3321
3322
3323
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3320

def list_integration_configurations(params = {}, options = {})
  req = build_request(:list_integration_configurations, params)
  req.send_request(options)
end

#list_integration_connections(params = {}) ⇒ Types::ListIntegrationConnectionsResponse

Returns a list of the integration connections.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_integration_connections({
  integration_arn: "IntegrationArn",
  environment_arn: "EnvironmentArn",
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.integration_connections #=> Array
resp.integration_connections[0].connection_id #=> String
resp.integration_connections[0].integration_name #=> String
resp.integration_connections[0].integration_arn #=> String
resp.integration_connections[0].environment_arn #=> String
resp.integration_connections[0].created_at #=> Time
resp.integration_connections[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_arn (String) —

    The Amazon Resource Name (ARN) of the integration.

  • :environment_arn (String) —

    The Amazon Resource Name (ARN) of the environment.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3371
3372
3373
3374
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3371

def list_integration_connections(params = {}, options = {})
  req = build_request(:list_integration_connections, params)
  req.send_request(options)
end

#list_integration_types(params = {}) ⇒ Types::ListIntegrationTypesResponse

Returns a list of the available integrations.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_integration_types({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.integration_types #=> Array
resp.integration_types[0].id #=> String
resp.integration_types[0].name #=> String
resp.integration_types[0].environment_variables #=> Array
resp.integration_types[0].environment_variables[0].key #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of integration types to return in one page.

  • :next_token (String) —

    A pagination token returned from a previous request.

Returns:

See Also:



3411
3412
3413
3414
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3411

def list_integration_types(params = {}, options = {})
  req = build_request(:list_integration_types, params)
  req.send_request(options)
end

#list_network_connectors(params = {}) ⇒ Types::ListNetworkConnectorsResponse

Returns a list of the network connectors.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_network_connectors({
  status_filter: "CREATING", # accepts CREATING, ACTIVE, CREATE_FAILED, UPDATING, UPDATE_FAILED, DELETING, DELETE_FAILED
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.network_connectors #=> Array
resp.network_connectors[0].network_connector_name #=> String
resp.network_connectors[0].network_connector_arn #=> String
resp.network_connectors[0].status #=> String, one of "CREATING", "ACTIVE", "CREATE_FAILED", "UPDATING", "UPDATE_FAILED", "DELETING", "DELETE_FAILED"
resp.network_connectors[0].status_reason #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :status_filter (String) —

    Filters the results to network connectors with the specified status.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3456
3457
3458
3459
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3456

def list_network_connectors(params = {}, options = {})
  req = build_request(:list_network_connectors, params)
  req.send_request(options)
end

#list_plan_violations(params = {}) ⇒ Types::ListPlanViolationsResponse

List the violations preventing an account to change flat rate plans. An empty list means the account already fits the target plan. If you allow the ListPlanViolations permission for your account, any requestor can see all project names that violate a downgrade from all Regions.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_plan_violations({
  target_plan: "BASIC", # required, accepts BASIC, PRO
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.violations #=> Array
resp.violations[0].code #=> String, one of "APP_LIMIT", "ENVIRONMENT_LIMIT", "BACKEND_LIMIT", "BRANCH_LIMIT", "BRANCH_STORAGE_LIMIT", "DATABASE_MAX_CAPACITY_LIMIT", "DATABASE_BACKUP_RETENTION_LIMIT", "GRADUAL_DEPLOY", "VPC_BINDING", "OIDC"
resp.violations[0].message #=> String
resp.violations[0].region_limits #=> Array
resp.violations[0].region_limits[0].region #=> String
resp.violations[0].region_limits[0].current #=> Integer
resp.violations[0].region_limits[0].target_limit #=> Integer
resp.violations[0].app_limits #=> Array
resp.violations[0].app_limits[0].arn #=> String
resp.violations[0].app_limits[0].region #=> String
resp.violations[0].app_limits[0].current #=> Integer
resp.violations[0].app_limits[0].target_limit #=> Integer
resp.violations[0].resources #=> Array
resp.violations[0].resources[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :target_plan (required, String) —

    The plan to check the account's resources against.

  • :max_results (Integer) —

    The maximum number of violations to return in one page.

  • :next_token (String) —

    A pagination token returned from a previous request.

Returns:

See Also:



3513
3514
3515
3516
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3513

def list_plan_violations(params = {}, options = {})
  req = build_request(:list_plan_violations, params)
  req.send_request(options)
end

#list_repositories(params = {}) ⇒ Types::ListRepositoriesResponse

Lists the repositories that a Git connection can access. For GitHub, these are the repositories that you granted to the app installation. For GitLab, these are the projects that you're a member of, with the most recently active first. The AWS Management Console uses this operation to show the repositories that you can choose from when you create an app.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_repositories({
  provider: "GITHUB", # required, accepts GITHUB, GITLAB
  owner: "GitOwnerName", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.repositories #=> Array
resp.repositories[0].provider #=> String, one of "GITHUB", "GITLAB"
resp.repositories[0].owner #=> String
resp.repositories[0].name #=> String
resp.repositories[0].default_branch #=> String
resp.repositories[0].repository_path #=> String
resp.repositories[0].updated_at #=> Time
resp.repositories[0].clone_url #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :provider (required, String) —

    The Git provider.

  • :owner (required, String) —

    The account that the Git connection is for. The value depends on the provider:

    • For GitHub, specify the user or organization name.

    • For GitLab, specify the user name.

    To get this value, call ListGitConnections.

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3577
3578
3579
3580
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3577

def list_repositories(params = {}, options = {})
  req = build_request(:list_repositories, params)
  req.send_request(options)
end

#list_source_uploads(params = {}) ⇒ Types::ListSourceUploadsResponse

Returns a list of the source uploads in the account.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_source_uploads({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.source_uploads #=> Array
resp.source_uploads[0].source_upload_id #=> String
resp.source_uploads[0].created_at #=> Time
resp.source_uploads[0].upload_expires_at #=> Time
resp.source_uploads[0].size_in_bytes #=> Integer
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of results to return in a single response.

  • :next_token (String) —

    The pagination token returned in a previous response, used to retrieve the next page of results.

Returns:

See Also:



3618
3619
3620
3621
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3618

def list_source_uploads(params = {}, options = {})
  req = build_request(:list_source_uploads, params)
  req.send_request(options)
end

#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse

Returns the tags for an Amplify resource.

Examples:

Request syntax with placeholder values


resp = client.list_tags_for_resource({
  resource_arn: "ResourceArn", # required
})

Response structure


resp.tags #=> Hash
resp.tags["TagMapKeyString"] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The Amazon Resource Name (ARN) of the resource to list the tags for.

Returns:

See Also:



3647
3648
3649
3650
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3647

def list_tags_for_resource(params = {}, options = {})
  req = build_request(:list_tags_for_resource, params)
  req.send_request(options)
end

#put_environment_variables(params = {}) ⇒ Struct

Updates environment variables for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.put_environment_variables({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  environment_variables: [ # required
    {
      key: "EnvironmentVariableKey", # required
      value: "EnvironmentVariableValue", # required
      type: "PLAINTEXT", # required, accepts PLAINTEXT, SENSITIVE
      comment: "EnvironmentVariableComment",
      scope: "BUILD", # accepts BUILD, RUNTIME, ALL, BACKEND
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :environment_variables (required, Array<Types::EnvironmentVariableInput>) —

    The environment variables.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



3685
3686
3687
3688
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3685

def put_environment_variables(params = {}, options = {})
  req = build_request(:put_environment_variables, params)
  req.send_request(options)
end

#put_identity_provider_config(params = {}) ⇒ Types::PutIdentityProviderConfigResponse

Updates the identity provider configuration for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.put_identity_provider_config({
  app_name: "AppName", # required
  identity_provider_name: "IdentityProviderName", # required
  identity_provider_config: { # required
    oidc: {
      issuer_url: "OidcConfigIssuerUrlString", # required
      client_id: "OidcConfigClientIdString", # required
      client_secret: "OidcClientSecret", # required
      token_type: "ID", # accepts ID, ACCESS
      token_validations: ["String"],
      authorization_endpoint: "OidcConfigAuthorizationEndpointString",
      token_endpoint: "OidcConfigTokenEndpointString",
      grant_type: "CODE", # accepts CODE, CODE_WITH_PKCE
      refresh_token_strategy: "OFFLINE_ACCESS_SCOPE", # accepts OFFLINE_ACCESS_SCOPE, NO_SCOPE
      authorize_request_params: {
        "String" => "String",
      },
      token_request_params: {
        "String" => "String",
      },
    },
    iam_identity_center: {
      instance_arn: "String",
      group_id: "String",
    },
  },
  client_token: "ClientToken",
})

Response structure


resp.status #=> String, one of "ACTIVE", "UPDATING", "ROLLED_BACK"
resp.status_reason #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :identity_provider_name (required, String) —

    The name of the identity provider.

  • :identity_provider_config (required, Types::IdentityProviderConfigRequest) —

    The identity provider configuration.

  • :client_token (String) —

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Returns:

See Also:



3750
3751
3752
3753
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3750

def put_identity_provider_config(params = {}, options = {})
  req = build_request(:put_identity_provider_config, params)
  req.send_request(options)
end

#reset_cache(params = {}) ⇒ Struct

Removes cached content for a deployment of an environment by cache tag.

Examples:

Request syntax with placeholder values


resp = client.reset_cache({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  deployment_id: "DeploymentId", # required
  cache_tags: ["CacheTag"], # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :deployment_id (required, String) —

    The ID of the deployment.

  • :cache_tags (required, Array<String>) —

    The cache tags that identify the content to remove.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



3785
3786
3787
3788
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3785

def reset_cache(params = {}, options = {})
  req = build_request(:reset_cache, params)
  req.send_request(options)
end

#restore_branch(params = {}) ⇒ Types::RestoreBranchResponse

Restores the data of the production branch to a point in time in a new branch of the Production environment. The production branch isn't changed, and no deployment uses the new branch. The name of the new branch is production- followed by the restore time in seconds since the epoch. The restore runs asynchronously. To connect to the new branch, call GetBranch with the returned branch ARN until it returns a DatabaseConnection. When you no longer need the branch, delete it with DeleteBranch. A request to restore to the same time as an earlier request returns the branch that the earlier request created.

Examples:

Request syntax with placeholder values


resp = client.restore_branch({
  branch_arn: "BranchArn", # required
  restore_to_time: Time.now, # required
})

Response structure


resp.branch_arn #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :branch_arn (required, String) —

    The Amazon Resource Name (ARN) of the production branch of the Production environment. Other branches can't be restored.

  • :restore_to_time (required, Time, DateTime, Date, Integer, String) —

    The point in time to restore the production branch to. The time must be within the window that GetRestoreWindow returns and can't be in the future. Fractions of a second are ignored.

Returns:

See Also:



3828
3829
3830
3831
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3828

def restore_branch(params = {}, options = {})
  req = build_request(:restore_branch, params)
  req.send_request(options)
end

#resume_backend(params = {}) ⇒ Types::ResumeBackendResponse

Resumes the paused backend of an app by restoring its database from a snapshot. The resume runs asynchronously. Call GetApp until the backend status is READY. You can resume only a backend that is PAUSED or PAUSING. For any other status, the request fails with a ConflictException. The operation isn't idempotent: repeating the request after the backend is RESUMING or READY fails with a ConflictException. A backend that was paused because a database reached its storage limit can't be resumed until the plan covers the size of the database or the database is deleted. A backend that used its plan's monthly allowance can't be resumed until the plan is upgraded or the allowance resets at the start of the next month (UTC). In both cases, the request fails with a ConflictException. If the account already has the maximum number of backends and the resume needs a new backend, the request fails with a ServiceQuotaExceededException.

Examples:

Request syntax with placeholder values


resp = client.resume_backend({
  app_name: "AppName", # required
})

Response structure


resp.status #=> String, one of "READY", "CREATING", "DELETING", "PAUSING", "PAUSED", "RESUMING"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

Returns:

See Also:



3870
3871
3872
3873
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3870

def resume_backend(params = {}, options = {})
  req = build_request(:resume_backend, params)
  req.send_request(options)
end

#revoke_api_key(params = {}) ⇒ Types::RevokeApiKeyResponse

Revokes an API key for a branch. A revoked key has a status of INACTIVE and is rejected. You can't reactivate a revoked key, and Amplify doesn't create a replacement key. Revoking a key that is already revoked succeeds and leaves the key INACTIVE.

Examples:

Request syntax with placeholder values


resp = client.revoke_api_key({
  branch_arn: "BranchArn", # required
  api_key_id: "ApiKeyId", # required
})

Response structure


resp.api_key_id #=> String
resp.status #=> String, one of "ACTIVE", "INACTIVE"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :branch_arn (required, String) —

    The Amazon Resource Name (ARN) of the branch that the API key belongs to.

  • :api_key_id (required, String) —

    The ID of the API key to revoke.

Returns:

See Also:



3908
3909
3910
3911
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3908

def revoke_api_key(params = {}, options = {})
  req = build_request(:revoke_api_key, params)
  req.send_request(options)
end

#rotate_identity_provider_secret(params = {}) ⇒ Struct

Rotates the client secret for the identity provider configuration of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.rotate_identity_provider_secret({
  app_name: "AppName", # required
  client_secret: "OidcClientSecret", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :client_secret (required, String) —

    The new client secret for the identity provider.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



3935
3936
3937
3938
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3935

def rotate_identity_provider_secret(params = {}, options = {})
  req = build_request(:rotate_identity_provider_secret, params)
  req.send_request(options)
end

#start_authorization_flow(params = {}) ⇒ Types::StartAuthorizationFlowResponse

Starts connecting a GitHub or GitLab account to your AWS account. The returned URL opens the Git provider page where you sign in and grant access. The AWS Management Console uses this operation when you connect a Git provider account.

Examples:

Request syntax with placeholder values


resp = client.start_authorization_flow({
  provider: "GITHUB", # required, accepts GITHUB, GITLAB
  redirect_url: "String", # required
})

Response structure


resp.git_provider_authorization_url #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :provider (required, String) —

    The Git provider.

  • :redirect_url (required, String) —

    The AWS Management Console page to return to after authorization completes.

Returns:

See Also:



3971
3972
3973
3974
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 3971

def start_authorization_flow(params = {}, options = {})
  req = build_request(:start_authorization_flow, params)
  req.send_request(options)
end

#start_cache_revalidation(params = {}) ⇒ Struct

Revalidates cached content for a deployment of an environment by cache tag.

Examples:

Request syntax with placeholder values


resp = client.start_cache_revalidation({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  deployment_id: "DeploymentId", # required
  cache_tags: ["CacheTag"], # required
  expiration_period_seconds: 1,
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :deployment_id (required, String) —

    The ID of the deployment.

  • :cache_tags (required, Array<String>) —

    The cache tags that identify the content to revalidate.

  • :expiration_period_seconds (Integer) —

    The period, in seconds, after which the revalidated content expires.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



4010
4011
4012
4013
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4010

def start_cache_revalidation(params = {}, options = {})
  req = build_request(:start_cache_revalidation, params)
  req.send_request(options)
end

#tag_resource(params = {}) ⇒ Struct

Adds tags to an Amplify resource.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "ResourceArn", # required
  tags: { # required
    "TagMapKeyString" => "TagMapValueString",
  },
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The Amazon Resource Name (ARN) of the resource to tag.

  • :tags (required, Hash<String,String>) —

    The tags to add to the resource.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



4038
4039
4040
4041
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4038

def tag_resource(params = {}, options = {})
  req = build_request(:tag_resource, params)
  req.send_request(options)
end

#untag_resource(params = {}) ⇒ Struct

Removes tags from an Amplify resource.

Examples:

Request syntax with placeholder values


resp = client.untag_resource({
  resource_arn: "ResourceArn", # required
  tag_keys: ["TagKey"], # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The Amazon Resource Name (ARN) of the resource to remove tags from.

  • :tag_keys (required, Array<String>) —

    The keys of the tags to remove from the resource.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



4064
4065
4066
4067
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4064

def untag_resource(params = {}, options = {})
  req = build_request(:untag_resource, params)
  req.send_request(options)
end

#update_access_control(params = {}) ⇒ Types::UpdateAccessControlResponse

Updates the access control configuration for an environment of a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.update_access_control({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  scope: "ALL_DEPLOYMENTS", # accepts ALL_DEPLOYMENTS, NON_ACTIVE_DEPLOYMENTS
  rule: {
    any_authenticated_user: {
    },
    user_claims: [
      {
        key: "AccessRuleConditionKeyString", # required
        operator: "EQUALS", # accepts EQUALS, CONTAINS, BEGINS_WITH, ENDS_WITH
        value: "AccessRuleConditionValueString", # required
      },
    ],
  },
  client_token: "ClientToken",
})

Response structure


resp.status #=> String, one of "ENABLING", "ENABLED", "ENABLE_FAILED", "UPDATING", "UPDATE_FAILED", "DISABLING", "DISABLED", "DISABLE_FAILED"
resp.status_reason #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :scope (String) —

    The scope that the access control configuration applies to.

  • :rule (Types::AccessControlRule) —

    The rule that determines which users are granted access.

  • :client_token (String) —

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Returns:

See Also:



4122
4123
4124
4125
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4122

def update_access_control(params = {}, options = {})
  req = build_request(:update_access_control, params)
  req.send_request(options)
end

#update_alias_routing(params = {}) ⇒ Types::UpdateAliasRoutingResponse

Updates the traffic routing for an alias of an environment.

Examples:

Request syntax with placeholder values


resp = client.update_alias_routing({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  alias_name: "AliasName", # required
  routing_config: [ # required
    {
      deployment_id: "DeploymentId", # required
      weight: 1, # required
    },
  ],
  gradual_rollout_config: {
    preset_config: {
      preset: "ALL_AT_ONCE", # required, accepts ALL_AT_ONCE, CANARY_10_PERCENT_5_MINUTES, CANARY_10_PERCENT_15_MINUTES, CANARY_10_PERCENT_30_MINUTES, LINEAR_10_PERCENT_EVERY_1_MINUTE, LINEAR_10_PERCENT_EVERY_3_MINUTES, LINEAR_10_PERCENT_EVERY_10_MINUTES
    },
  },
})

Response structure


resp.gradual_rollout_state.status #=> String, one of "IN_PROGRESS", "COMPLETED", "CANCELLED"
resp.gradual_rollout_state.source_routing_config #=> Array
resp.gradual_rollout_state.source_routing_config[0].deployment_id #=> String
resp.gradual_rollout_state.source_routing_config[0].weight #=> Integer
resp.gradual_rollout_state.target_routing_config #=> Array
resp.gradual_rollout_state.target_routing_config[0].deployment_id #=> String
resp.gradual_rollout_state.target_routing_config[0].weight #=> Integer
resp.gradual_rollout_state.schedule #=> Array
resp.gradual_rollout_state.schedule[0].weight #=> Integer
resp.gradual_rollout_state.schedule[0].effective_at #=> Time
resp.gradual_rollout_state.current_stage_index #=> Integer
resp.gradual_rollout_state.started_at #=> Time
resp.gradual_rollout_state.ended_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :alias_name (required, String) —

    The name of the alias.

  • :routing_config (required, Array<Types::RoutingConfigEntry>) —

    The traffic routing configuration to apply to the alias.

  • :gradual_rollout_config (Types::GradualRolloutConfig) —

    The gradual rollout settings to apply to the alias.

Returns:

See Also:



4187
4188
4189
4190
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4187

def update_alias_routing(params = {}, options = {})
  req = build_request(:update_alias_routing, params)
  req.send_request(options)
end

#update_app(params = {}) ⇒ Struct

Updates a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.update_app({
  app_name: "AppName", # required
  source_config: {
    git_hub_source: {
      repository_url: "AppUpdateGitHubSourceRequestRepositoryUrlString", # required
    },
    git_lab_source: {
      repository_url: "AppUpdateGitLabSourceRequestRepositoryUrlString", # required
      owner: "AppUpdateGitLabSourceRequestOwnerString", # required
    },
    no_source: {
    },
  },
  web: {
    build_config: {
      install_command: "AppUpdateBuildConfigRequestInstallCommandString",
      build_command: "AppUpdateBuildConfigRequestBuildCommandString",
      root_directory: "AppUpdateBuildConfigRequestRootDirectoryString",
      output_directory: "AppUpdateBuildConfigRequestOutputDirectoryString",
    },
  },
  backend: {
    migrations_directory: "AppBackendRequestMigrationsDirectoryString",
  },
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :source_config (Types::AppUpdateSourceConfigRequest) —

    The source configuration for the app.

  • :web (Types::AppUpdateWebConfigRequest) —

    The web hosting settings for the app.

  • :backend (Types::AppBackendRequest) —

    The backend settings for the app. Specify this to add a backend to an app that doesn't have one. For an app that already has a backend, you can change only the migrations directory. Omit this to leave the backend unchanged.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



4243
4244
4245
4246
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4243

def update_app(params = {}, options = {})
  req = build_request(:update_app, params)
  req.send_request(options)
end

#update_domain_association(params = {}) ⇒ Types::UpdateDomainAssociationResponse

Updates a domain association for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.update_domain_association({
  app_name: "AppName", # required
  domain_name: "CustomDomainName", # required
  routing: {
    alias: {
      alias_arn: "AliasArn", # required
    },
    redirect: {
      target_url: "RedirectTargetUrl", # required
      status_code: "HTTP_301", # required, accepts HTTP_301, HTTP_302, HTTP_307, HTTP_308
    },
  },
})

Response structure


resp.domain_status #=> String, one of "CREATING", "PENDING_CERTIFICATE_VALIDATION", "PENDING_OWNERSHIP_VALIDATION", "PENDING_DNS_VALIDATION", "PENDING_NS_DELEGATION", "PROVISIONING", "ACTIVE", "UPDATING", "DELETING", "CREATE_FAILED", "UPDATE_FAILED", "DELETE_FAILED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :domain_name (required, String) —

    The fully qualified domain name.

  • :routing (Types::Routing) —

    The routing configuration for the domain.

Returns:

See Also:



4287
4288
4289
4290
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4287

def update_domain_association(params = {}, options = {})
  req = build_request(:update_domain_association, params)
  req.send_request(options)
end

#update_environment(params = {}) ⇒ Struct

Updates an environment for a Gen 3 app.

Examples:

Request syntax with placeholder values


resp = client.update_environment({
  app_name: "AppName", # required
  environment_name: "EnvironmentName", # required
  environment_role_arn: "EnvironmentRoleArn",
  environment_role_permission_mode: "SCOPED", # accepts SCOPED, FULL
  source_config: {
    git_source: {
      branch_match_patterns: ["BranchMatchPatternsMemberString"], # required
      deployment_trigger_events: ["PUSH"], # accepts PUSH, PULL_REQUEST, FORK_PULL_REQUEST
    },
    no_source: {
    },
  },
  waf_log_configs: [
    {
      cloud_watch_logs_config: {
        status: "ENABLED", # required, accepts ENABLED, DISABLED
        sampling_rate: 1,
        scope: "ALL_REQUESTS", # accepts ALL_REQUESTS, BLOCKED_ONLY
      },
      s3_config: {
        status: "ENABLED", # required, accepts ENABLED, DISABLED
        sampling_rate: 1,
        scope: "ALL_REQUESTS", # accepts ALL_REQUESTS, BLOCKED_ONLY
        bucket_arn: "WafS3DeliveryConfigRequestBucketArnString",
      },
    },
  ],
  gradual_rollout_config: {
    preset_config: {
      preset: "ALL_AT_ONCE", # required, accepts ALL_AT_ONCE, CANARY_10_PERCENT_5_MINUTES, CANARY_10_PERCENT_15_MINUTES, CANARY_10_PERCENT_30_MINUTES, LINEAR_10_PERCENT_EVERY_1_MINUTE, LINEAR_10_PERCENT_EVERY_3_MINUTES, LINEAR_10_PERCENT_EVERY_10_MINUTES
    },
  },
  web: {
    access_log_config: {
      cloud_watch_logs_config: {
        status: "ENABLED", # required, accepts ENABLED, DISABLED
        sampling_rate: 1,
      },
      s3_config: {
        status: "ENABLED", # required, accepts ENABLED, DISABLED
        sampling_rate: 1,
        bucket_arn: "S3DeliveryConfigRequestBucketArnString",
      },
    },
    environment_alias_config: {
      routing_mode: "AUTO_ROUTE_TO_LATEST", # accepts AUTO_ROUTE_TO_LATEST, MANUAL
    },
    skew_protection_config: {
      status: "ENABLED", # accepts ENABLED, DISABLED
      cookie_max_age_seconds: 1,
    },
  },
  backend: {
    auth: "AuthConfigDocument",
    database: {
      max_backend_capacity_units: 1,
      backup_retention_days: 1,
    },
    database_log_config: {
      cloud_watch_logs_config: {
        status: "ENABLED", # required, accepts ENABLED, DISABLED
        sampling_rate: 1,
      },
      s3_config: {
        status: "ENABLED", # required, accepts ENABLED, DISABLED
        sampling_rate: 1,
        bucket_arn: "DatabaseS3DeliveryConfigRequestBucketArnString",
      },
    },
  },
  network_config: {
    build_network_connector_arn: "OptionalNetworkConnectorArn",
    compute_network_connector_arn: "OptionalNetworkConnectorArn",
  },
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :app_name (required, String) —

    The name of the app.

  • :environment_name (required, String) —

    The name of the environment.

  • :environment_role_arn (String) —

    The Amazon Resource Name (ARN) of the IAM role for the environment.

  • :environment_role_permission_mode (String) —

    The permission mode for the environment's IAM role.

  • :source_config (Types::EnvironmentUpdateSourceConfigRequest) —

    The source configuration for the environment.

  • :waf_log_configs (Array<Types::WafLogConfigRequest>) —

    A list of the environment's AWS WAF log configurations.

  • :gradual_rollout_config (Types::GradualRolloutConfig) —

    The gradual rollout settings.

  • :web (Types::EnvironmentUpdateWebConfigRequest) —

    The web hosting settings for the environment.

  • :backend (Types::EnvironmentUpdateBackendRequest) —

    The backend settings for the environment. You can specify Auth and Database only when the app has a backend. An app without a backend can specify this only to turn off backend log delivery. If you omit a member, that setting is unchanged.

  • :network_config (Types::EnvironmentUpdateNetworkConfigRequest) —

    The VPC network configuration for the environment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



4412
4413
4414
4415
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4412

def update_environment(params = {}, options = {})
  req = build_request(:update_environment, params)
  req.send_request(options)
end

#update_integration_configuration(params = {}) ⇒ Struct

Updates an integration configuration.

Examples:

Request syntax with placeholder values


resp = client.update_integration_configuration({
  integration_name: "IntegrationName", # required
  integration_type_id: "IntegrationTypeId",
  resource_configuration: {
    s3: {
      bucket_arn: "S3ConfigurationBucketArnString", # required
    },
    dsql: {
      cluster_arn: "DsqlConfigurationClusterArnString", # required
      database_user: "DsqlConfigurationDatabaseUserString", # required
    },
    bedrock: {
      region_name: "BedrockConfigurationRegionNameString", # required
      model_id: "BedrockConfigurationModelIdString",
    },
    custom: {
      resource_arn: "CustomConfigurationResourceArnString",
    },
  },
  environment_variables: [
    {
      key: "EnvironmentVariableKey", # required
      key_override: "EnvironmentVariableKey",
      value: "EnvironmentVariableValue",
      type: "PLAINTEXT", # accepts PLAINTEXT, SENSITIVE
    },
  ],
  remove_environment_variable_keys: ["EnvironmentVariableKey"],
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_name (required, String) —

    The name of the integration.

  • :integration_type_id (String) —

    The ID of the integration type.

  • :resource_configuration (Types::ResourceConfiguration) —

    The resource configuration for the integration.

  • :environment_variables (Array<Types::IntegrationEnvironmentVariableInput>) —

    The environment variables.

  • :remove_environment_variable_keys (Array<String>) —

    The keys of the environment variables to remove.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



4472
4473
4474
4475
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4472

def update_integration_configuration(params = {}, options = {})
  req = build_request(:update_integration_configuration, params)
  req.send_request(options)
end

#update_network_connector(params = {}) ⇒ Types::UpdateNetworkConnectorResponse

Updates a network connector.

Examples:

Request syntax with placeholder values


resp = client.update_network_connector({
  network_connector_name: "NetworkConnectorName", # required
  subnet_ids: ["SubnetId"],
  security_group_ids: ["SecurityGroupId"],
  network_connector_role_arn: "NetworkConnectorRoleArn",
})

Response structure


resp.status #=> String, one of "CREATING", "ACTIVE", "CREATE_FAILED", "UPDATING", "UPDATE_FAILED", "DELETING", "DELETE_FAILED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :network_connector_name (required, String) —

    The name of the network connector.

  • :subnet_ids (Array<String>) —

    The IDs of the subnets.

  • :security_group_ids (Array<String>) —

    The IDs of the security groups.

  • :network_connector_role_arn (String) —

    The Amazon Resource Name (ARN) of the IAM role for the network connector.

Returns:

See Also:



4513
4514
4515
4516
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/client.rb', line 4513

def update_network_connector(params = {}, options = {})
  req = build_request(:update_network_connector, params)
  req.send_request(options)
end