UpdateResourceProvider
Updates the configuration of the specified resource provider.
Request Syntax
PATCH /resources/providers/Arn HTTP/1.1
Content-type: application/json
{
"AutoDeleteNotFoundTargetsAfterDays": number,
"Name": "string",
"ProviderConfiguration": { ... },
"SecretConfigurationArn": "string",
"TargetConfiguration": {
"MssqlDatabase": {
"BackupStreamCount": number,
"FullBackupAfterDays": number,
"FullBackupAfterScheduleExpression": "string",
"IsCopyOnlyFull": boolean,
"LogBackupFrequencyInMinutes": number
},
"NasFilesystem": {
"AllowUnencryptedDataTransfer": boolean
},
"OracledbDatabase": {
"BackupChannelCount": number,
"BackupNodeHostName": "string",
"FullBackupAfterDays": number,
"FullBackupAfterScheduleExpression": "string",
"LogBackupFrequencyInMinutes": number,
"LogRetentionOnHostInHours": number
},
"ServerFilesystem": {
"BackupConsistency": "string",
"PostBackupScript": {
"ScriptParams": "string",
"ScriptPath": "string",
"TimeoutInMinutes": number
},
"PreBackupScript": {
"ContinueBackupOnScriptFailure": boolean,
"ScriptParams": "string",
"ScriptPath": "string",
"TimeoutInMinutes": number
}
},
"VmwareVm": {
"BackupConsistency": "string"
}
},
"TargetTagKeysToSync": [ "string" ],
"TargetTagsOnCreate": {
"string" : "string"
}
}
URI Request Parameters
The request uses the following URI parameters.
- Arn
-
The Amazon Resource Name (ARN) of the resource provider.
Length Constraints: Minimum length of 0. Maximum length of 256.
Pattern:
arn:aws[a-z0-9-]{0,30}:backup-external:[a-z0-9-]{1,30}:[0-9]{12}:resource-provider:[a-z0-9-]{1,30}/[a-z0-9]{1,36}Required: Yes
Request Body
The request accepts the following data in JSON format.
- AutoDeleteNotFoundTargetsAfterDays
-
The number of days after which resource targets with a status of
NOT_FOUNDare automatically deleted. Specify-1to disable automatic deletion.Type: Integer
Valid Range: Minimum value of -1.
Required: No
- Name
-
The name of the resource provider.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 64.
Pattern:
[\p{L}\p{Z}\p{N}_.:/=+\-@]*Required: No
- ProviderConfiguration
-
The configuration of the resource provider.
Type: ResourceProviderConfiguration object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
- SecretConfigurationArn
-
The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
Pattern:
arn:aws[a-z0-9-]{0,30}:secretsmanager:[a-z0-9-]{1,30}:[0-9]{12}:secret:[a-zA-Z0-9/_+=.@-]{1,512}Required: No
- TargetConfiguration
-
The default backup configurations for the resource provider's resource targets, by target type.
Type: ResourceTargetConfigurations object
Required: No
- TargetTagKeysToSync
-
The tag keys whose values are synchronized from external resources to their resource targets.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 10 items.
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern:
[\p{L}\p{Z}\p{N}_.:/=+\-@]*Required: No
- TargetTagsOnCreate
-
The tags to apply when the resource provider's resource targets are created.
Type: String to string map
Map Entries: Minimum number of 0 items. Maximum number of 10 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Key Pattern:
[\p{L}\p{Z}\p{N}_.:/=+\-@]*Value Length Constraints: Minimum length of 0. Maximum length of 256.
Value Pattern:
[\p{L}\p{Z}\p{N}_.:/=+\-@]*Required: No
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
The request was denied because you do not have permission to perform the requested operation.
HTTP Status Code: 403
- ConflictException
-
The request conflicts with the current state of the specified resource.
HTTP Status Code: 409
- InternalServerException
-
The request failed because of an internal server error.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource was not found.
HTTP Status Code: 404
- ThrottlingException
-
The request was denied because the request rate is too high.
HTTP Status Code: 429
- ValidationException
-
The request contains invalid parameters.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: