/* * 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 managedblockchain-2018-09-24.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.ManagedBlockchain.Model { /// /// Configuration properties of the member. /// /// /// /// Applies only to Hyperledger Fabric. /// /// public partial class MemberConfiguration { private string _description; private MemberFrameworkConfiguration _frameworkConfiguration; private string _kmsKeyArn; private MemberLogPublishingConfiguration _logPublishingConfiguration; private string _name; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property Description. /// /// An optional description of the member. /// /// [AWSProperty(Max=128)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property FrameworkConfiguration. /// /// Configuration properties of the blockchain framework relevant to the member. /// /// [AWSProperty(Required=true)] public MemberFrameworkConfiguration FrameworkConfiguration { get { return this._frameworkConfiguration; } set { this._frameworkConfiguration = value; } } // Check to see if FrameworkConfiguration property is set internal bool IsSetFrameworkConfiguration() { return this._frameworkConfiguration != null; } /// /// Gets and sets the property KmsKeyArn. /// /// The Amazon Resource Name (ARN) of the customer managed key in Key Management Service /// (KMS) to use for encryption at rest in the member. This parameter is inherited by /// any nodes that this member creates. For more information, see Encryption /// at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. /// /// /// /// Use one of the following options to specify this parameter: /// ///
  • /// /// Undefined or empty string - By default, use an KMS key that is owned and managed /// by Amazon Web Services on your behalf. /// ///
  • /// /// A valid symmetric customer managed KMS key - Use the specified KMS key in /// your account that you create, own, and manage. /// /// /// /// Amazon Managed Blockchain doesn't support asymmetric keys. For more information, see /// Using /// symmetric and asymmetric keys in the Key Management Service Developer Guide. /// /// /// /// The following is an example of a KMS key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab /// /// ///
///
[AWSProperty(Min=1, Max=1011)] public string KmsKeyArn { get { return this._kmsKeyArn; } set { this._kmsKeyArn = value; } } // Check to see if KmsKeyArn property is set internal bool IsSetKmsKeyArn() { return this._kmsKeyArn != null; } /// /// Gets and sets the property LogPublishingConfiguration. /// /// Configuration properties for logging events associated with a member of a Managed /// Blockchain network. /// /// public MemberLogPublishingConfiguration LogPublishingConfiguration { get { return this._logPublishingConfiguration; } set { this._logPublishingConfiguration = value; } } // Check to see if LogPublishingConfiguration property is set internal bool IsSetLogPublishingConfiguration() { return this._logPublishingConfiguration != null; } /// /// Gets and sets the property Name. /// /// The name of the member. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Tags. /// /// Tags assigned to the member. Tags consist of a key and optional value. /// /// /// /// When specifying tags during creation, you can specify multiple key-value pairs in /// a single request, with an overall maximum of 50 tags added to each resource. /// /// /// /// For more information about tags, see Tagging /// Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or /// Tagging /// Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. /// /// [AWSProperty(Min=0, Max=50)] public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }