/* * 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 ec2-2016-11-15.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.EC2.Model { /// /// Container for the parameters to the ModifyEbsDefaultKmsKeyId operation. /// Changes the default KMS key for EBS encryption by default for your account in this /// Region. /// /// /// /// Amazon Web Services creates a unique Amazon Web Services managed KMS key in each Region /// for use with encryption by default. If you change the default KMS key to a symmetric /// customer managed KMS key, it is used instead of the Amazon Web Services managed KMS /// key. To reset the default KMS key to the Amazon Web Services managed KMS key for EBS, /// use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric KMS keys. /// /// /// /// If you delete or disable the customer managed KMS key that you specified for use with /// encryption by default, your instances will fail to launch. /// /// /// /// For more information, see Amazon /// EBS encryption in the Amazon Elastic Compute Cloud User Guide. /// /// public partial class ModifyEbsDefaultKmsKeyIdRequest : AmazonEC2Request { private string _kmsKeyId; /// /// Gets and sets the property KmsKeyId. /// /// The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS encryption. /// If this parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId /// is specified, the encrypted state must be true. /// /// /// /// You can specify the KMS key using any of the following: /// /// /// /// Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify /// an ID, alias, or ARN that is not valid, the action can appear to complete, but eventually /// fails. /// /// /// /// Amazon EBS does not support asymmetric KMS keys. /// /// [AWSProperty(Required=true)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } } }