apply_pending_maintenance_action

DatabaseMigrationService.Client.apply_pending_maintenance_action(**kwargs)

Applies a pending maintenance action to a resource (for example, to a replication instance).

See also: AWS API Documentation

Request Syntax

response = client.apply_pending_maintenance_action(
    ReplicationInstanceArn='string',
    ApplyAction='string',
    OptInType='string'
)
Parameters
  • ReplicationInstanceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to.

  • ApplyAction (string) --

    [REQUIRED]

    The pending maintenance action to apply to this resource.

    Valid values: os-upgrade , system-update , db-upgrade

  • OptInType (string) --

    [REQUIRED]

    A value that specifies the type of opt-in request, or undoes an opt-in request. You can't undo an opt-in request of type immediate .

    Valid values:

    • immediate - Apply the maintenance action immediately.
    • next-maintenance - Apply the maintenance action during the next maintenance window for the resource.
    • undo-opt-in - Cancel any existing next-maintenance opt-in requests.
Return type

dict

Returns

Response Syntax

{
    'ResourcePendingMaintenanceActions': {
        'ResourceIdentifier': 'string',
        'PendingMaintenanceActionDetails': [
            {
                'Action': 'string',
                'AutoAppliedAfterDate': datetime(2015, 1, 1),
                'ForcedApplyDate': datetime(2015, 1, 1),
                'OptInStatus': 'string',
                'CurrentApplyDate': datetime(2015, 1, 1),
                'Description': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • ResourcePendingMaintenanceActions (dict) --

      The DMS resource that the pending maintenance action will be applied to.

      • ResourceIdentifier (string) --

        The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) for DMS in the DMS documentation.

      • PendingMaintenanceActionDetails (list) --

        Detailed information about the pending maintenance action.

        • (dict) --

          Describes a maintenance action pending for an DMS resource, including when and how it will be applied. This data type is a response element to the DescribePendingMaintenanceActions operation.

          • Action (string) --

            The type of pending maintenance action that is available for the resource.

          • AutoAppliedAfterDate (datetime) --

            The date of the maintenance window when the action is to be applied. The maintenance action is applied to the resource during its first maintenance window after this date. If this date is specified, any next-maintenance opt-in requests are ignored.

          • ForcedApplyDate (datetime) --

            The date when the maintenance action will be automatically applied. The maintenance action is applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any immediate opt-in requests are ignored.

          • OptInStatus (string) --

            The type of opt-in request that has been received for the resource.

          • CurrentApplyDate (datetime) --

            The effective date when the pending maintenance action will be applied to the resource. This date takes into account opt-in requests received from the ApplyPendingMaintenanceAction API operation, and also the AutoAppliedAfterDate and ForcedApplyDate parameter values. This value is blank if an opt-in request has not been received and nothing has been specified for AutoAppliedAfterDate or ForcedApplyDate .

          • Description (string) --

            A description providing more detail about the maintenance action.

Exceptions

  • DatabaseMigrationService.Client.exceptions.ResourceNotFoundFault