/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// Details about an Secrets Manager secret. /// public partial class AwsSecretsManagerSecretDetails { private bool? _deleted; private string _description; private string _kmsKeyId; private string _name; private bool? _rotationEnabled; private string _rotationLambdaArn; private bool? _rotationOccurredWithinFrequency; private AwsSecretsManagerSecretRotationRules _rotationRules; /// /// Gets and sets the property Deleted. /// /// Whether the secret is deleted. /// /// public bool Deleted { get { return this._deleted.GetValueOrDefault(); } set { this._deleted = value; } } // Check to see if Deleted property is set internal bool IsSetDeleted() { return this._deleted.HasValue; } /// /// Gets and sets the property Description. /// /// The user-provided description of the secret. /// /// 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 KmsKeyId. /// /// The ARN, Key ID, or alias of the KMS key used to encrypt the SecretString /// or SecretBinary values for versions of this secret. /// /// 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; } /// /// Gets and sets the property Name. /// /// The name of the secret. /// /// 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 RotationEnabled. /// /// Whether rotation is enabled. /// /// public bool RotationEnabled { get { return this._rotationEnabled.GetValueOrDefault(); } set { this._rotationEnabled = value; } } // Check to see if RotationEnabled property is set internal bool IsSetRotationEnabled() { return this._rotationEnabled.HasValue; } /// /// Gets and sets the property RotationLambdaArn. /// /// The ARN of the Lambda function that rotates the secret. /// /// public string RotationLambdaArn { get { return this._rotationLambdaArn; } set { this._rotationLambdaArn = value; } } // Check to see if RotationLambdaArn property is set internal bool IsSetRotationLambdaArn() { return this._rotationLambdaArn != null; } /// /// Gets and sets the property RotationOccurredWithinFrequency. /// /// Whether the rotation occurred within the specified rotation frequency. /// /// public bool RotationOccurredWithinFrequency { get { return this._rotationOccurredWithinFrequency.GetValueOrDefault(); } set { this._rotationOccurredWithinFrequency = value; } } // Check to see if RotationOccurredWithinFrequency property is set internal bool IsSetRotationOccurredWithinFrequency() { return this._rotationOccurredWithinFrequency.HasValue; } /// /// Gets and sets the property RotationRules. /// /// Defines the rotation schedule for the secret. /// /// public AwsSecretsManagerSecretRotationRules RotationRules { get { return this._rotationRules; } set { this._rotationRules = value; } } // Check to see if RotationRules property is set internal bool IsSetRotationRules() { return this._rotationRules != null; } } }