Updates the name and/or the path of the specified server certificate.
You should understand the implications of changing a server certificate’s path or name. For more information, see Managing Server Certificates in Using AWS Identity and Access Management.
To change a server certificate name the requester must have appropriate permissions on both the source object and the target object. For example, to change the name from ProductionCert to ProdCert, the entity making the request must have permission on ProductionCert and ProdCert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the server certificate that you want to update. [Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Updates the information for a server certificate.
// Instantiate the class $iam = new AmazonIAM(); $response = $iam->update_server_certificate('my-server-cert', array( 'NewPath' => '/' )); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub