// List all permissions on a private CA, if any, granted to the AWS Certificate
// Manager (ACM) service principal (acm.amazonaws.com). These permissions allow ACM
// to issue and renew ACM certificates that reside in the same AWS account as the
// CA. Permissions can be granted with the CreatePermission
// (https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreatePermission.html)
// action and revoked with the DeletePermission
// (https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DeletePermission.html)
// action. About Permissions
//
// * If the private CA and the certificates it issues
// reside in the same account, you can use CreatePermission to grant permissions
// for ACM to carry out automatic certificate renewals.
//
// * For automatic
// certificate renewal to succeed, the ACM service principal needs permissions to
// create, retrieve, and list certificates.
//
// * If the private CA and the ACM
// certificates reside in different accounts, then permissions cannot be used to
// enable automatic renewals. Instead, the ACM certificate owner must set up a
// resource-based policy to enable cross-account issuance and renewals. For more
// information, see Using a Resource Based Policy with ACM Private CA.
List all permissions on a private CA, if any, granted to the AWS Certificate
Manager (ACM) service principal (acm.amazonaws.com). These permissions allow ACM
to issue and renew ACM certificates that reside in the same AWS account as the
CA. Permissions can be granted with the CreatePermission

action and revoked with the DeletePermission

action. About Permissions

If the private CA and the certificates it issues
reside in the same account, you can use CreatePermission to grant permissions
for ACM to carry out automatic certificate renewals.

For automatic
certificate renewal to succeed, the ACM service principal needs permissions to
create, retrieve, and list certificates.

If the private CA and the ACM
certificates reside in different accounts, then permissions cannot be used to
enable automatic renewals. Instead, the ACM certificate owner must set up a
resource-based policy to enable cross-account issuance and renewals. For more
information, see Using a Resource Based Policy with ACM Private CA.
// List all permissions on a private CA if any granted to the AWS Certificate // Manager ( ACM ) service principal ( acm . amazonaws . com ) . These permissions allow ACM // to issue and renew ACM certificates that reside in the same AWS account as the // CA . Permissions can be granted with the CreatePermission // ( https : // docs . aws . amazon . com / acm - pca / latest / APIReference / API_CreatePermission . html ) // action and revoked with the DeletePermission // ( https : // docs . aws . amazon . com / acm - pca / latest / APIReference / API_DeletePermission . html ) // action . About Permissions // // * If the private CA and the certificates it issues // reside in the same account you can use CreatePermission to grant permissions // for ACM to carry out automatic certificate renewals . // // * For automatic // certificate renewal to succeed the ACM service principal needs permissions to // create retrieve and list certificates . // // * If the private CA and the ACM // certificates reside in different accounts then permissions cannot be used to // enable automatic renewals . Instead the ACM certificate owner must set up a // resource - based policy to enable cross - account issuance and renewals . For more // information see Using a Resource Based Policy with ACM Private CA .
func (c *Client) ListPermissions(ctx context.Context, params *ListPermissionsInput, optFns ...func(*Options)) (*ListPermissionsOutput, error) {
	if params == nil {
		params = &ListPermissionsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListPermissions", params, optFns, addOperationListPermissionsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListPermissionsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListPermissions ( ctx context . Context , params * ListPermissionsInput , optFns ... func ( * Options ) ) ( * ListPermissionsOutput , error ) { if params == nil { params = & ListPermissionsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListPermissionsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListPermissionsOutput ) out . ResultMetadata = metadata return out , nil }
List all permissions on a private CA, if any, granted to the AWS Certificate
Manager (ACM) service principal (acm.amazonaws.com).
List all permissions on a private CA if any granted to the AWS Certificate Manager ( ACM ) service principal ( acm . amazonaws . com ) .