/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the acm-pca-2017-08-22.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ACMPCA.Model { /// /// Container for the parameters to the CreatePermission operation. /// Grants one or more permissions on a private CA to the Certificate Manager (ACM) service /// principal (acm.amazonaws.com). These permissions allow ACM to issue and /// renew ACM certificates that reside in the same Amazon Web Services account as the /// CA. /// /// /// /// You can list current permissions with the ListPermissions /// action and revoke them with the DeletePermission /// action. /// ///

About Permissions /// ///

///
public partial class CreatePermissionRequest : AmazonACMPCARequest { private List _actions = new List(); private string _certificateAuthorityArn; private string _principal; private string _sourceAccount; /// /// Gets and sets the property Actions. /// /// The actions that the specified Amazon Web Services service principal can use. These /// include IssueCertificate, GetCertificate, and ListPermissions. /// /// [AWSProperty(Required=true, Min=1, Max=3)] public List Actions { get { return this._actions; } set { this._actions = value; } } // Check to see if Actions property is set internal bool IsSetActions() { return this._actions != null && this._actions.Count > 0; } /// /// Gets and sets the property CertificateAuthorityArn. /// /// The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find /// the ARN by calling the ListCertificateAuthorities /// action. This must have the following form: /// /// /// /// arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 /// . /// /// [AWSProperty(Required=true, Min=5, Max=200)] public string CertificateAuthorityArn { get { return this._certificateAuthorityArn; } set { this._certificateAuthorityArn = value; } } // Check to see if CertificateAuthorityArn property is set internal bool IsSetCertificateAuthorityArn() { return this._certificateAuthorityArn != null; } /// /// Gets and sets the property Principal. /// /// The Amazon Web Services service or identity that receives the permission. At this /// time, the only valid principal is acm.amazonaws.com. /// /// [AWSProperty(Required=true, Min=0, Max=128)] public string Principal { get { return this._principal; } set { this._principal = value; } } // Check to see if Principal property is set internal bool IsSetPrincipal() { return this._principal != null; } /// /// Gets and sets the property SourceAccount. /// /// The ID of the calling account. /// /// [AWSProperty(Min=12, Max=12)] public string SourceAccount { get { return this._sourceAccount; } set { this._sourceAccount = value; } } // Check to see if SourceAccount property is set internal bool IsSetSourceAccount() { return this._sourceAccount != null; } } }