repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.CloudTrail.Internal { /// <summary> /// Amazon CloudTrail endpoint provider. /// Resolves endpoint for given set of CloudTrailEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonCloudTrailEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for CloudTrailEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if (IsSet(refs["Endpoint"])) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (IsSet(refs["Region"])) { if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { if (Equals(refs["Region"], "us-gov-east-1")) { return new Endpoint("https://cloudtrail.us-gov-east-1.amazonaws.com", InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(refs["Region"], "us-gov-west-1")) { return new Endpoint("https://cloudtrail.us-gov-west-1.amazonaws.com", InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://cloudtrail-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
111
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.normal.json service model. */ using System; using Amazon.CloudTrail.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.CloudTrail.Endpoints; #pragma warning disable 1591 namespace Amazon.CloudTrail.Internal { /// <summary> /// Amazon CloudTrail endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudTrail service requests. /// Collects values for CloudTrailEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudTrailEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonCloudTrailEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonCloudTrailConfig)requestContext.ClientConfig; var result = new CloudTrailEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.CloudTrail.Internal { /// <summary> /// Service metadata for Amazon CloudTrail service /// </summary> public partial class AmazonCloudTrailMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "CloudTrail"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when you start a new import and a previous import is still /// in progress. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccountHasOngoingImportException : AmazonCloudTrailException { /// <summary> /// Constructs a new AccountHasOngoingImportException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccountHasOngoingImportException(string message) : base(message) {} /// <summary> /// Construct instance of AccountHasOngoingImportException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccountHasOngoingImportException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccountHasOngoingImportException /// </summary> /// <param name="innerException"></param> public AccountHasOngoingImportException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccountHasOngoingImportException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccountHasOngoingImportException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccountHasOngoingImportException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccountHasOngoingImportException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccountHasOngoingImportException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccountHasOngoingImportException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the specified account is not found or not part of an /// organization. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccountNotFoundException : AmazonCloudTrailException { /// <summary> /// Constructs a new AccountNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccountNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of AccountNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccountNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccountNotFoundException /// </summary> /// <param name="innerException"></param> public AccountNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccountNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccountNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccountNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccountNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccountNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccountNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the specified account is not registered as the CloudTrail /// delegated administrator. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccountNotRegisteredException : AmazonCloudTrailException { /// <summary> /// Constructs a new AccountNotRegisteredException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccountNotRegisteredException(string message) : base(message) {} /// <summary> /// Construct instance of AccountNotRegisteredException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccountNotRegisteredException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccountNotRegisteredException /// </summary> /// <param name="innerException"></param> public AccountNotRegisteredException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccountNotRegisteredException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccountNotRegisteredException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccountNotRegisteredException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccountNotRegisteredException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccountNotRegisteredException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccountNotRegisteredException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the account is already registered as the CloudTrail /// delegated administrator. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccountRegisteredException : AmazonCloudTrailException { /// <summary> /// Constructs a new AccountRegisteredException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccountRegisteredException(string message) : base(message) {} /// <summary> /// Construct instance of AccountRegisteredException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccountRegisteredException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccountRegisteredException /// </summary> /// <param name="innerException"></param> public AccountRegisteredException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccountRegisteredException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccountRegisteredException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccountRegisteredException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccountRegisteredException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccountRegisteredException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccountRegisteredException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the AddTags operation. /// Adds one or more tags to a trail, event data store, or channel, up to a limit of 50. /// Overwrites an existing tag's value when a new value is specified for an existing tag /// key. Tag key names must be unique; you cannot have two keys with the same name but /// different values. If you specify a key without a value, the tag will be created with /// the specified key and a value of null. You can tag a trail or event data store that /// applies to all Amazon Web Services Regions only from the Region in which the trail /// or event data store was created (also known as its home Region). /// </summary> public partial class AddTagsRequest : AmazonCloudTrailRequest { private string _resourceId; private List<Tag> _tagsList = new List<Tag>(); /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Specifies the ARN of the trail, event data store, or channel to which one or more /// tags will be added. /// </para> /// /// <para> /// The format of a trail ARN is: <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> /// /// </para> /// /// <para> /// The format of an event data store ARN is: <code>arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code> /// /// </para> /// /// <para> /// The format of a channel ARN is: <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code> /// /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property TagsList. /// <para> /// Contains a list of tags, up to a limit of 50 /// </para> /// </summary> [AWSProperty(Required=true, Max=200)] public List<Tag> TagsList { get { return this._tagsList; } set { this._tagsList = value; } } // Check to see if TagsList property is set internal bool IsSetTagsList() { return this._tagsList != null && this._tagsList.Count > 0; } } }
101
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Returns the objects or data if successful. Otherwise, returns an error. /// </summary> public partial class AddTagsResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudTrail { /// <summary> /// Base class for CloudTrail operation requests. /// </summary> public partial class AmazonCloudTrailRequest : AmazonWebServiceRequest { } }
30
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the CancelQuery operation. /// Cancels a query if the query is not in a terminated state, such as <code>CANCELLED</code>, /// <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>FINISHED</code>. You must specify /// an ARN value for <code>EventDataStore</code>. The ID of the query that you want to /// cancel is also required. When you run <code>CancelQuery</code>, the query status might /// show as <code>CANCELLED</code> even if the operation is not yet finished. /// </summary> public partial class CancelQueryRequest : AmazonCloudTrailRequest { private string _eventDataStore; private string _queryId; /// <summary> /// Gets and sets the property EventDataStore. /// <para> /// The ARN (or the ID suffix of the ARN) of an event data store on which the specified /// query is running. /// </para> /// </summary> [Obsolete("EventDataStore is no longer required by CancelQueryRequest")] [AWSProperty(Min=3, Max=256)] public string EventDataStore { get { return this._eventDataStore; } set { this._eventDataStore = value; } } // Check to see if EventDataStore property is set internal bool IsSetEventDataStore() { return this._eventDataStore != null; } /// <summary> /// Gets and sets the property QueryId. /// <para> /// The ID of the query that you want to cancel. The <code>QueryId</code> comes from the /// response of a <code>StartQuery</code> operation. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string QueryId { get { return this._queryId; } set { this._queryId = value; } } // Check to see if QueryId property is set internal bool IsSetQueryId() { return this._queryId != null; } } }
86
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the CancelQuery operation. /// </summary> public partial class CancelQueryResponse : AmazonWebServiceResponse { private string _queryId; private QueryStatus _queryStatus; /// <summary> /// Gets and sets the property QueryId. /// <para> /// The ID of the canceled query. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string QueryId { get { return this._queryId; } set { this._queryId = value; } } // Check to see if QueryId property is set internal bool IsSetQueryId() { return this._queryId != null; } /// <summary> /// Gets and sets the property QueryStatus. /// <para> /// Shows the status of a query after a <code>CancelQuery</code> request. Typically, the /// values shown are either <code>RUNNING</code> or <code>CANCELLED</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public QueryStatus QueryStatus { get { return this._queryStatus; } set { this._queryStatus = value; } } // Check to see if QueryStatus property is set internal bool IsSetQueryStatus() { return this._queryStatus != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the management account of an organization is registered /// as the CloudTrail delegated administrator. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CannotDelegateManagementAccountException : AmazonCloudTrailException { /// <summary> /// Constructs a new CannotDelegateManagementAccountException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CannotDelegateManagementAccountException(string message) : base(message) {} /// <summary> /// Construct instance of CannotDelegateManagementAccountException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CannotDelegateManagementAccountException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CannotDelegateManagementAccountException /// </summary> /// <param name="innerException"></param> public CannotDelegateManagementAccountException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CannotDelegateManagementAccountException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CannotDelegateManagementAccountException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CannotDelegateManagementAccountException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CannotDelegateManagementAccountException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CannotDelegateManagementAccountException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CannotDelegateManagementAccountException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Contains information about a returned CloudTrail channel. /// </summary> public partial class Channel { private string _channelArn; private string _name; /// <summary> /// Gets and sets the property ChannelArn. /// <para> /// The Amazon Resource Name (ARN) of a channel. /// </para> /// </summary> [AWSProperty(Min=3, Max=256)] public string ChannelArn { get { return this._channelArn; } set { this._channelArn = value; } } // Check to see if ChannelArn property is set internal bool IsSetChannelArn() { return this._channelArn != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the CloudTrail channel. For service-linked channels, the name is <code>aws-service-channel/service-name/custom-suffix</code> /// where <code>service-name</code> represents the name of the Amazon Web Services service /// that created the channel and <code>custom-suffix</code> represents the suffix created /// by the Amazon Web Services service. /// </para> /// </summary> [AWSProperty(Min=3, Max=128)] 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; } } }
81
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the provided channel already exists. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ChannelAlreadyExistsException : AmazonCloudTrailException { /// <summary> /// Constructs a new ChannelAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ChannelAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of ChannelAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ChannelAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ChannelAlreadyExistsException /// </summary> /// <param name="innerException"></param> public ChannelAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ChannelAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ChannelAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelAlreadyExistsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ChannelAlreadyExistsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ChannelAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the specified value of <code>ChannelARN</code> is not /// valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ChannelARNInvalidException : AmazonCloudTrailException { /// <summary> /// Constructs a new ChannelARNInvalidException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ChannelARNInvalidException(string message) : base(message) {} /// <summary> /// Construct instance of ChannelARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ChannelARNInvalidException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ChannelARNInvalidException /// </summary> /// <param name="innerException"></param> public ChannelARNInvalidException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ChannelARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelARNInvalidException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ChannelARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelARNInvalidException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ChannelARNInvalidException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ChannelARNInvalidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the specified event data store cannot yet be deleted /// because it is in use by a channel. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ChannelExistsForEDSException : AmazonCloudTrailException { /// <summary> /// Constructs a new ChannelExistsForEDSException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ChannelExistsForEDSException(string message) : base(message) {} /// <summary> /// Construct instance of ChannelExistsForEDSException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ChannelExistsForEDSException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ChannelExistsForEDSException /// </summary> /// <param name="innerException"></param> public ChannelExistsForEDSException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ChannelExistsForEDSException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelExistsForEDSException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ChannelExistsForEDSException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelExistsForEDSException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ChannelExistsForEDSException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ChannelExistsForEDSException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the maximum number of channels limit is exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ChannelMaxLimitExceededException : AmazonCloudTrailException { /// <summary> /// Constructs a new ChannelMaxLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ChannelMaxLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of ChannelMaxLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ChannelMaxLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ChannelMaxLimitExceededException /// </summary> /// <param name="innerException"></param> public ChannelMaxLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ChannelMaxLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelMaxLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ChannelMaxLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelMaxLimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ChannelMaxLimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ChannelMaxLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when CloudTrail cannot find the specified channel. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ChannelNotFoundException : AmazonCloudTrailException { /// <summary> /// Constructs a new ChannelNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ChannelNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ChannelNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ChannelNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ChannelNotFoundException /// </summary> /// <param name="innerException"></param> public ChannelNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ChannelNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ChannelNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ChannelNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ChannelNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ChannelNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when trusted access has not been enabled between CloudTrail /// and Organizations. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html">Enabling /// Trusted Access with Other Amazon Web Services Services</a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare /// For Creating a Trail For Your Organization</a>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudTrailAccessNotEnabledException : AmazonCloudTrailException { /// <summary> /// Constructs a new CloudTrailAccessNotEnabledException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudTrailAccessNotEnabledException(string message) : base(message) {} /// <summary> /// Construct instance of CloudTrailAccessNotEnabledException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudTrailAccessNotEnabledException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudTrailAccessNotEnabledException /// </summary> /// <param name="innerException"></param> public CloudTrailAccessNotEnabledException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudTrailAccessNotEnabledException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudTrailAccessNotEnabledException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudTrailAccessNotEnabledException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudTrailAccessNotEnabledException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudTrailAccessNotEnabledException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudTrailAccessNotEnabledException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
127
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when an operation is called with a trail ARN that is not /// valid. The following is the format of a trail ARN. /// /// /// <para> /// <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> /// </para> /// /// <para> /// This exception is also thrown when you call <code>AddTags</code> or <code>RemoveTags</code> /// on a trail, event data store, or channel with a resource ARN that is not valid. /// </para> /// /// <para> /// The following is the format of an event data store ARN: <code>arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code> /// /// </para> /// /// <para> /// The following is the format of a channel ARN: <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code> /// /// </para> /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudTrailARNInvalidException : AmazonCloudTrailException { /// <summary> /// Constructs a new CloudTrailARNInvalidException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudTrailARNInvalidException(string message) : base(message) {} /// <summary> /// Construct instance of CloudTrailARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudTrailARNInvalidException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudTrailARNInvalidException /// </summary> /// <param name="innerException"></param> public CloudTrailARNInvalidException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudTrailARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudTrailARNInvalidException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudTrailARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudTrailARNInvalidException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudTrailARNInvalidException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudTrailARNInvalidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
145
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when a call results in the <code>InvalidClientTokenId</code> /// error code. This can occur when you are creating or updating a trail to send notifications /// to an Amazon SNS topic that is in a suspended Amazon Web Services account. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudTrailInvalidClientTokenIdException : AmazonCloudTrailException { /// <summary> /// Constructs a new CloudTrailInvalidClientTokenIdException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudTrailInvalidClientTokenIdException(string message) : base(message) {} /// <summary> /// Construct instance of CloudTrailInvalidClientTokenIdException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudTrailInvalidClientTokenIdException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudTrailInvalidClientTokenIdException /// </summary> /// <param name="innerException"></param> public CloudTrailInvalidClientTokenIdException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudTrailInvalidClientTokenIdException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudTrailInvalidClientTokenIdException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudTrailInvalidClientTokenIdException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudTrailInvalidClientTokenIdException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudTrailInvalidClientTokenIdException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudTrailInvalidClientTokenIdException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
126
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Cannot set a CloudWatch Logs delivery for this Region. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudWatchLogsDeliveryUnavailableException : AmazonCloudTrailException { /// <summary> /// Constructs a new CloudWatchLogsDeliveryUnavailableException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudWatchLogsDeliveryUnavailableException(string message) : base(message) {} /// <summary> /// Construct instance of CloudWatchLogsDeliveryUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudWatchLogsDeliveryUnavailableException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudWatchLogsDeliveryUnavailableException /// </summary> /// <param name="innerException"></param> public CloudWatchLogsDeliveryUnavailableException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudWatchLogsDeliveryUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudWatchLogsDeliveryUnavailableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudWatchLogsDeliveryUnavailableException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudWatchLogsDeliveryUnavailableException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudWatchLogsDeliveryUnavailableException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudWatchLogsDeliveryUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the specified resource is not ready for an operation. /// This can occur when you try to run an operation on a resource before CloudTrail has /// time to fully load the resource, or because another operation is modifying the resource. /// If this exception occurs, wait a few minutes, and then try the operation again. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConflictException : AmazonCloudTrailException { /// <summary> /// Constructs a new ConflictException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConflictException(string message) : base(message) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConflictException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="innerException"></param> public ConflictException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ConflictException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
127
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the CreateChannel operation. /// Creates a channel for CloudTrail to ingest events from a partner or external source. /// After you create a channel, a CloudTrail Lake event data store can log events from /// the partner or source that you specify. /// </summary> public partial class CreateChannelRequest : AmazonCloudTrailRequest { private List<Destination> _destinations = new List<Destination>(); private string _name; private string _source; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property Destinations. /// <para> /// One or more event data stores to which events arriving through a channel will be logged. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=200)] public List<Destination> Destinations { get { return this._destinations; } set { this._destinations = value; } } // Check to see if Destinations property is set internal bool IsSetDestinations() { return this._destinations != null && this._destinations.Count > 0; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the channel. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=128)] 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; } /// <summary> /// Gets and sets the property Source. /// <para> /// The name of the partner or external event source. You cannot change this name after /// you create the channel. A maximum of one channel is allowed per source. /// </para> /// /// <para> /// A source can be either <code>Custom</code> for all valid non-Amazon Web Services /// events, or the name of a partner event source. For information about the source names /// for available partners, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-integration.html#cloudtrail-lake-partner-information">Additional /// information about integration partners</a> in the CloudTrail User Guide. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string Source { get { return this._source; } set { this._source = value; } } // Check to see if Source property is set internal bool IsSetSource() { return this._source != null; } /// <summary> /// Gets and sets the property Tags. /// </summary> [AWSProperty(Max=200)] public List<Tag> 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; } } }
126
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the CreateChannel operation. /// </summary> public partial class CreateChannelResponse : AmazonWebServiceResponse { private string _channelArn; private List<Destination> _destinations = new List<Destination>(); private string _name; private string _source; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property ChannelArn. /// <para> /// The Amazon Resource Name (ARN) of the new channel. /// </para> /// </summary> [AWSProperty(Min=3, Max=256)] public string ChannelArn { get { return this._channelArn; } set { this._channelArn = value; } } // Check to see if ChannelArn property is set internal bool IsSetChannelArn() { return this._channelArn != null; } /// <summary> /// Gets and sets the property Destinations. /// <para> /// The event data stores that log the events arriving through the channel. /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public List<Destination> Destinations { get { return this._destinations; } set { this._destinations = value; } } // Check to see if Destinations property is set internal bool IsSetDestinations() { return this._destinations != null && this._destinations.Count > 0; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the new channel. /// </para> /// </summary> [AWSProperty(Min=3, Max=128)] 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; } /// <summary> /// Gets and sets the property Source. /// <para> /// The partner or external event source name. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string Source { get { return this._source; } set { this._source = value; } } // Check to see if Source property is set internal bool IsSetSource() { return this._source != null; } /// <summary> /// Gets and sets the property Tags. /// </summary> [AWSProperty(Max=200)] public List<Tag> 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; } } }
135
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the CreateEventDataStore operation. /// Creates a new event data store. /// </summary> public partial class CreateEventDataStoreRequest : AmazonCloudTrailRequest { private List<AdvancedEventSelector> _advancedEventSelectors = new List<AdvancedEventSelector>(); private string _kmsKeyId; private bool? _multiRegionEnabled; private string _name; private bool? _organizationEnabled; private int? _retentionPeriod; private bool? _startIngestion; private List<Tag> _tagsList = new List<Tag>(); private bool? _terminationProtectionEnabled; /// <summary> /// Gets and sets the property AdvancedEventSelectors. /// <para> /// The advanced event selectors to use to select the events for the data store. You can /// configure up to five advanced event selectors for each event data store. /// </para> /// /// <para> /// For more information about how to use advanced event selectors to log CloudTrail /// events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">Log /// events by using advanced event selectors</a> in the CloudTrail User Guide. /// </para> /// /// <para> /// For more information about how to use advanced event selectors to include Config configuration /// items in your event data store, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-lake-cli.html#lake-cli-create-eds-config">Create /// an event data store for Config configuration items</a> in the CloudTrail User Guide. /// </para> /// /// <para> /// For more information about how to use advanced event selectors to include non-Amazon /// Web Services events in your event data store, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-lake-cli.html#lake-cli-create-integration">Create /// an integration to log events from outside Amazon Web Services</a> in the CloudTrail /// User Guide. /// </para> /// </summary> public List<AdvancedEventSelector> AdvancedEventSelectors { get { return this._advancedEventSelectors; } set { this._advancedEventSelectors = value; } } // Check to see if AdvancedEventSelectors property is set internal bool IsSetAdvancedEventSelectors() { return this._advancedEventSelectors != null && this._advancedEventSelectors.Count > 0; } /// <summary> /// Gets and sets the property KmsKeyId. /// <para> /// Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail. The /// value can be an alias name prefixed by <code>alias/</code>, a fully specified ARN /// to an alias, a fully specified ARN to a key, or a globally unique identifier. /// </para> /// <important> /// <para> /// Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, /// prevents CloudTrail from logging events to the event data store, and prevents users /// from querying the data in the event data store that was encrypted with the key. After /// you associate an event data store with a KMS key, the KMS key cannot be removed or /// changed. Before you disable or delete a KMS key that you are using with an event data /// store, delete or back up your event data store. /// </para> /// </important> /// <para> /// CloudTrail also supports KMS multi-Region keys. For more information about multi-Region /// keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using /// multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>. /// </para> /// /// <para> /// Examples: /// </para> /// <ul> <li> /// <para> /// <code>alias/MyAliasName</code> /// </para> /// </li> <li> /// <para> /// <code>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</code> /// </para> /// </li> <li> /// <para> /// <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </li> <li> /// <para> /// <code>12345678-1234-1234-1234-123456789012</code> /// </para> /// </li> </ul> /// </summary> [AWSProperty(Min=1, Max=350)] 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; } /// <summary> /// Gets and sets the property MultiRegionEnabled. /// <para> /// Specifies whether the event data store includes events from all Regions, or only from /// the Region in which the event data store is created. /// </para> /// </summary> public bool MultiRegionEnabled { get { return this._multiRegionEnabled.GetValueOrDefault(); } set { this._multiRegionEnabled = value; } } // Check to see if MultiRegionEnabled property is set internal bool IsSetMultiRegionEnabled() { return this._multiRegionEnabled.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the event data store. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=128)] 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; } /// <summary> /// Gets and sets the property OrganizationEnabled. /// <para> /// Specifies whether an event data store collects events logged for an organization in /// Organizations. /// </para> /// </summary> public bool OrganizationEnabled { get { return this._organizationEnabled.GetValueOrDefault(); } set { this._organizationEnabled = value; } } // Check to see if OrganizationEnabled property is set internal bool IsSetOrganizationEnabled() { return this._organizationEnabled.HasValue; } /// <summary> /// Gets and sets the property RetentionPeriod. /// <para> /// The retention period of the event data store, in days. You can set a retention period /// of up to 2557 days, the equivalent of seven years. /// </para> /// </summary> [AWSProperty(Min=7, Max=2557)] public int RetentionPeriod { get { return this._retentionPeriod.GetValueOrDefault(); } set { this._retentionPeriod = value; } } // Check to see if RetentionPeriod property is set internal bool IsSetRetentionPeriod() { return this._retentionPeriod.HasValue; } /// <summary> /// Gets and sets the property StartIngestion. /// <para> /// Specifies whether the event data store should start ingesting live events. The default /// is true. /// </para> /// </summary> public bool StartIngestion { get { return this._startIngestion.GetValueOrDefault(); } set { this._startIngestion = value; } } // Check to see if StartIngestion property is set internal bool IsSetStartIngestion() { return this._startIngestion.HasValue; } /// <summary> /// Gets and sets the property TagsList. /// </summary> [AWSProperty(Max=200)] public List<Tag> TagsList { get { return this._tagsList; } set { this._tagsList = value; } } // Check to see if TagsList property is set internal bool IsSetTagsList() { return this._tagsList != null && this._tagsList.Count > 0; } /// <summary> /// Gets and sets the property TerminationProtectionEnabled. /// <para> /// Specifies whether termination protection is enabled for the event data store. If termination /// protection is enabled, you cannot delete the event data store until termination protection /// is disabled. /// </para> /// </summary> public bool TerminationProtectionEnabled { get { return this._terminationProtectionEnabled.GetValueOrDefault(); } set { this._terminationProtectionEnabled = value; } } // Check to see if TerminationProtectionEnabled property is set internal bool IsSetTerminationProtectionEnabled() { return this._terminationProtectionEnabled.HasValue; } } }
276
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the CreateEventDataStore operation. /// </summary> public partial class CreateEventDataStoreResponse : AmazonWebServiceResponse { private List<AdvancedEventSelector> _advancedEventSelectors = new List<AdvancedEventSelector>(); private DateTime? _createdTimestamp; private string _eventDataStoreArn; private string _kmsKeyId; private bool? _multiRegionEnabled; private string _name; private bool? _organizationEnabled; private int? _retentionPeriod; private EventDataStoreStatus _status; private List<Tag> _tagsList = new List<Tag>(); private bool? _terminationProtectionEnabled; private DateTime? _updatedTimestamp; /// <summary> /// Gets and sets the property AdvancedEventSelectors. /// <para> /// The advanced event selectors that were used to select the events for the data store. /// </para> /// </summary> public List<AdvancedEventSelector> AdvancedEventSelectors { get { return this._advancedEventSelectors; } set { this._advancedEventSelectors = value; } } // Check to see if AdvancedEventSelectors property is set internal bool IsSetAdvancedEventSelectors() { return this._advancedEventSelectors != null && this._advancedEventSelectors.Count > 0; } /// <summary> /// Gets and sets the property CreatedTimestamp. /// <para> /// The timestamp that shows when the event data store was created. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property EventDataStoreArn. /// <para> /// The ARN of the event data store. /// </para> /// </summary> [AWSProperty(Min=3, Max=256)] public string EventDataStoreArn { get { return this._eventDataStoreArn; } set { this._eventDataStoreArn = value; } } // Check to see if EventDataStoreArn property is set internal bool IsSetEventDataStoreArn() { return this._eventDataStoreArn != null; } /// <summary> /// Gets and sets the property KmsKeyId. /// <para> /// Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value /// is a fully specified ARN to a KMS key in the following format. /// </para> /// /// <para> /// <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </summary> [AWSProperty(Min=1, Max=350)] 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; } /// <summary> /// Gets and sets the property MultiRegionEnabled. /// <para> /// Indicates whether the event data store collects events from all Regions, or only from /// the Region in which it was created. /// </para> /// </summary> public bool MultiRegionEnabled { get { return this._multiRegionEnabled.GetValueOrDefault(); } set { this._multiRegionEnabled = value; } } // Check to see if MultiRegionEnabled property is set internal bool IsSetMultiRegionEnabled() { return this._multiRegionEnabled.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the event data store. /// </para> /// </summary> [AWSProperty(Min=3, Max=128)] 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; } /// <summary> /// Gets and sets the property OrganizationEnabled. /// <para> /// Indicates whether an event data store is collecting logged events for an organization /// in Organizations. /// </para> /// </summary> public bool OrganizationEnabled { get { return this._organizationEnabled.GetValueOrDefault(); } set { this._organizationEnabled = value; } } // Check to see if OrganizationEnabled property is set internal bool IsSetOrganizationEnabled() { return this._organizationEnabled.HasValue; } /// <summary> /// Gets and sets the property RetentionPeriod. /// <para> /// The retention period of an event data store, in days. /// </para> /// </summary> [AWSProperty(Min=7, Max=2557)] public int RetentionPeriod { get { return this._retentionPeriod.GetValueOrDefault(); } set { this._retentionPeriod = value; } } // Check to see if RetentionPeriod property is set internal bool IsSetRetentionPeriod() { return this._retentionPeriod.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of event data store creation. /// </para> /// </summary> public EventDataStoreStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property TagsList. /// </summary> [AWSProperty(Max=200)] public List<Tag> TagsList { get { return this._tagsList; } set { this._tagsList = value; } } // Check to see if TagsList property is set internal bool IsSetTagsList() { return this._tagsList != null && this._tagsList.Count > 0; } /// <summary> /// Gets and sets the property TerminationProtectionEnabled. /// <para> /// Indicates whether termination protection is enabled for the event data store. /// </para> /// </summary> public bool TerminationProtectionEnabled { get { return this._terminationProtectionEnabled.GetValueOrDefault(); } set { this._terminationProtectionEnabled = value; } } // Check to see if TerminationProtectionEnabled property is set internal bool IsSetTerminationProtectionEnabled() { return this._terminationProtectionEnabled.HasValue; } /// <summary> /// Gets and sets the property UpdatedTimestamp. /// <para> /// The timestamp that shows when an event data store was updated, if applicable. <code>UpdatedTimestamp</code> /// is always either the same or newer than the time shown in <code>CreatedTimestamp</code>. /// </para> /// </summary> public DateTime UpdatedTimestamp { get { return this._updatedTimestamp.GetValueOrDefault(); } set { this._updatedTimestamp = value; } } // Check to see if UpdatedTimestamp property is set internal bool IsSetUpdatedTimestamp() { return this._updatedTimestamp.HasValue; } } }
277
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the CreateTrail operation. /// Creates a trail that specifies the settings for delivery of log data to an Amazon /// S3 bucket. /// </summary> public partial class CreateTrailRequest : AmazonCloudTrailRequest { private string _cloudWatchLogsLogGroupArn; private string _cloudWatchLogsRoleArn; private bool? _enableLogFileValidation; private bool? _includeGlobalServiceEvents; private bool? _isMultiRegionTrail; private bool? _isOrganizationTrail; private string _kmsKeyId; private string _name; private string _s3BucketName; private string _s3KeyPrefix; private string _snsTopicName; private List<Tag> _tagsList = new List<Tag>(); /// <summary> /// Gets and sets the property CloudWatchLogsLogGroupArn. /// <para> /// Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier /// that represents the log group to which CloudTrail logs will be delivered. You must /// use a log group that exists in your account. /// </para> /// /// <para> /// Not required unless you specify <code>CloudWatchLogsRoleArn</code>. /// </para> /// </summary> public string CloudWatchLogsLogGroupArn { get { return this._cloudWatchLogsLogGroupArn; } set { this._cloudWatchLogsLogGroupArn = value; } } // Check to see if CloudWatchLogsLogGroupArn property is set internal bool IsSetCloudWatchLogsLogGroupArn() { return this._cloudWatchLogsLogGroupArn != null; } /// <summary> /// Gets and sets the property CloudWatchLogsRoleArn. /// <para> /// Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's /// log group. You must use a role that exists in your account. /// </para> /// </summary> public string CloudWatchLogsRoleArn { get { return this._cloudWatchLogsRoleArn; } set { this._cloudWatchLogsRoleArn = value; } } // Check to see if CloudWatchLogsRoleArn property is set internal bool IsSetCloudWatchLogsRoleArn() { return this._cloudWatchLogsRoleArn != null; } /// <summary> /// Gets and sets the property EnableLogFileValidation. /// <para> /// Specifies whether log file integrity validation is enabled. The default is false. /// </para> /// <note> /// <para> /// When you disable log file integrity validation, the chain of digest files is broken /// after one hour. CloudTrail does not create digest files for log files that were delivered /// during a period in which log file integrity validation was disabled. For example, /// if you enable log file integrity validation at noon on January 1, disable it at noon /// on January 2, and re-enable it at noon on January 10, digest files will not be created /// for the log files delivered from noon on January 2 to noon on January 10. The same /// applies whenever you stop CloudTrail logging or delete a trail. /// </para> /// </note> /// </summary> public bool EnableLogFileValidation { get { return this._enableLogFileValidation.GetValueOrDefault(); } set { this._enableLogFileValidation = value; } } // Check to see if EnableLogFileValidation property is set internal bool IsSetEnableLogFileValidation() { return this._enableLogFileValidation.HasValue; } /// <summary> /// Gets and sets the property IncludeGlobalServiceEvents. /// <para> /// Specifies whether the trail is publishing events from global services such as IAM /// to the log files. /// </para> /// </summary> public bool IncludeGlobalServiceEvents { get { return this._includeGlobalServiceEvents.GetValueOrDefault(); } set { this._includeGlobalServiceEvents = value; } } // Check to see if IncludeGlobalServiceEvents property is set internal bool IsSetIncludeGlobalServiceEvents() { return this._includeGlobalServiceEvents.HasValue; } /// <summary> /// Gets and sets the property IsMultiRegionTrail. /// <para> /// Specifies whether the trail is created in the current Region or in all Regions. The /// default is false, which creates a trail only in the Region where you are signed in. /// As a best practice, consider creating trails that log events in all Regions. /// </para> /// </summary> public bool IsMultiRegionTrail { get { return this._isMultiRegionTrail.GetValueOrDefault(); } set { this._isMultiRegionTrail = value; } } // Check to see if IsMultiRegionTrail property is set internal bool IsSetIsMultiRegionTrail() { return this._isMultiRegionTrail.HasValue; } /// <summary> /// Gets and sets the property IsOrganizationTrail. /// <para> /// Specifies whether the trail is created for all accounts in an organization in Organizations, /// or only for the current Amazon Web Services account. The default is false, and cannot /// be true unless the call is made on behalf of an Amazon Web Services account that is /// the management account or delegated administrator account for an organization in Organizations. /// </para> /// </summary> public bool IsOrganizationTrail { get { return this._isOrganizationTrail.GetValueOrDefault(); } set { this._isOrganizationTrail = value; } } // Check to see if IsOrganizationTrail property is set internal bool IsSetIsOrganizationTrail() { return this._isOrganizationTrail.HasValue; } /// <summary> /// Gets and sets the property KmsKeyId. /// <para> /// Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value /// can be an alias name prefixed by <code>alias/</code>, a fully specified ARN to an /// alias, a fully specified ARN to a key, or a globally unique identifier. /// </para> /// /// <para> /// CloudTrail also supports KMS multi-Region keys. For more information about multi-Region /// keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using /// multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>. /// </para> /// /// <para> /// Examples: /// </para> /// <ul> <li> /// <para> /// <code>alias/MyAliasName</code> /// </para> /// </li> <li> /// <para> /// <code>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</code> /// </para> /// </li> <li> /// <para> /// <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </li> <li> /// <para> /// <code>12345678-1234-1234-1234-123456789012</code> /// </para> /// </li> </ul> /// </summary> 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; } /// <summary> /// Gets and sets the property Name. /// <para> /// Specifies the name of the trail. The name must meet the following requirements: /// </para> /// <ul> <li> /// <para> /// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), /// or dashes (-) /// </para> /// </li> <li> /// <para> /// Start with a letter or number, and end with a letter or number /// </para> /// </li> <li> /// <para> /// Be between 3 and 128 characters /// </para> /// </li> <li> /// <para> /// Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code> /// and <code>my--namespace</code> are not valid. /// </para> /// </li> <li> /// <para> /// Not be in IP address format (for example, 192.168.5.4) /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] 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; } /// <summary> /// Gets and sets the property S3BucketName. /// <para> /// Specifies the name of the Amazon S3 bucket designated for publishing log files. See /// <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html">Amazon /// S3 Bucket Naming Requirements</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string S3BucketName { get { return this._s3BucketName; } set { this._s3BucketName = value; } } // Check to see if S3BucketName property is set internal bool IsSetS3BucketName() { return this._s3BucketName != null; } /// <summary> /// Gets and sets the property S3KeyPrefix. /// <para> /// Specifies the Amazon S3 key prefix that comes after the name of the bucket you have /// designated for log file delivery. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html">Finding /// Your CloudTrail Log Files</a>. The maximum length is 200 characters. /// </para> /// </summary> public string S3KeyPrefix { get { return this._s3KeyPrefix; } set { this._s3KeyPrefix = value; } } // Check to see if S3KeyPrefix property is set internal bool IsSetS3KeyPrefix() { return this._s3KeyPrefix != null; } /// <summary> /// Gets and sets the property SnsTopicName. /// <para> /// Specifies the name of the Amazon SNS topic defined for notification of log file delivery. /// The maximum length is 256 characters. /// </para> /// </summary> public string SnsTopicName { get { return this._snsTopicName; } set { this._snsTopicName = value; } } // Check to see if SnsTopicName property is set internal bool IsSetSnsTopicName() { return this._snsTopicName != null; } /// <summary> /// Gets and sets the property TagsList. /// </summary> [AWSProperty(Max=200)] public List<Tag> TagsList { get { return this._tagsList; } set { this._tagsList = value; } } // Check to see if TagsList property is set internal bool IsSetTagsList() { return this._tagsList != null && this._tagsList.Count > 0; } } }
350
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Returns the objects or data listed below if successful. Otherwise, returns an error. /// </summary> public partial class CreateTrailResponse : AmazonWebServiceResponse { private string _cloudWatchLogsLogGroupArn; private string _cloudWatchLogsRoleArn; private bool? _includeGlobalServiceEvents; private bool? _isMultiRegionTrail; private bool? _isOrganizationTrail; private string _kmsKeyId; private bool? _logFileValidationEnabled; private string _name; private string _s3BucketName; private string _s3KeyPrefix; private string _snsTopicARN; private string _snsTopicName; private string _trailARN; /// <summary> /// Gets and sets the property CloudWatchLogsLogGroupArn. /// <para> /// Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs /// will be delivered. /// </para> /// </summary> public string CloudWatchLogsLogGroupArn { get { return this._cloudWatchLogsLogGroupArn; } set { this._cloudWatchLogsLogGroupArn = value; } } // Check to see if CloudWatchLogsLogGroupArn property is set internal bool IsSetCloudWatchLogsLogGroupArn() { return this._cloudWatchLogsLogGroupArn != null; } /// <summary> /// Gets and sets the property CloudWatchLogsRoleArn. /// <para> /// Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's /// log group. /// </para> /// </summary> public string CloudWatchLogsRoleArn { get { return this._cloudWatchLogsRoleArn; } set { this._cloudWatchLogsRoleArn = value; } } // Check to see if CloudWatchLogsRoleArn property is set internal bool IsSetCloudWatchLogsRoleArn() { return this._cloudWatchLogsRoleArn != null; } /// <summary> /// Gets and sets the property IncludeGlobalServiceEvents. /// <para> /// Specifies whether the trail is publishing events from global services such as IAM /// to the log files. /// </para> /// </summary> public bool IncludeGlobalServiceEvents { get { return this._includeGlobalServiceEvents.GetValueOrDefault(); } set { this._includeGlobalServiceEvents = value; } } // Check to see if IncludeGlobalServiceEvents property is set internal bool IsSetIncludeGlobalServiceEvents() { return this._includeGlobalServiceEvents.HasValue; } /// <summary> /// Gets and sets the property IsMultiRegionTrail. /// <para> /// Specifies whether the trail exists in one Region or in all Regions. /// </para> /// </summary> public bool IsMultiRegionTrail { get { return this._isMultiRegionTrail.GetValueOrDefault(); } set { this._isMultiRegionTrail = value; } } // Check to see if IsMultiRegionTrail property is set internal bool IsSetIsMultiRegionTrail() { return this._isMultiRegionTrail.HasValue; } /// <summary> /// Gets and sets the property IsOrganizationTrail. /// <para> /// Specifies whether the trail is an organization trail. /// </para> /// </summary> public bool IsOrganizationTrail { get { return this._isOrganizationTrail.GetValueOrDefault(); } set { this._isOrganizationTrail = value; } } // Check to see if IsOrganizationTrail property is set internal bool IsSetIsOrganizationTrail() { return this._isOrganizationTrail.HasValue; } /// <summary> /// Gets and sets the property KmsKeyId. /// <para> /// Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value /// is a fully specified ARN to a KMS key in the following format. /// </para> /// /// <para> /// <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property LogFileValidationEnabled. /// <para> /// Specifies whether log file integrity validation is enabled. /// </para> /// </summary> public bool LogFileValidationEnabled { get { return this._logFileValidationEnabled.GetValueOrDefault(); } set { this._logFileValidationEnabled = value; } } // Check to see if LogFileValidationEnabled property is set internal bool IsSetLogFileValidationEnabled() { return this._logFileValidationEnabled.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// Specifies the name of the trail. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property S3BucketName. /// <para> /// Specifies the name of the Amazon S3 bucket designated for publishing log files. /// </para> /// </summary> public string S3BucketName { get { return this._s3BucketName; } set { this._s3BucketName = value; } } // Check to see if S3BucketName property is set internal bool IsSetS3BucketName() { return this._s3BucketName != null; } /// <summary> /// Gets and sets the property S3KeyPrefix. /// <para> /// Specifies the Amazon S3 key prefix that comes after the name of the bucket you have /// designated for log file delivery. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html">Finding /// Your CloudTrail Log Files</a>. /// </para> /// </summary> public string S3KeyPrefix { get { return this._s3KeyPrefix; } set { this._s3KeyPrefix = value; } } // Check to see if S3KeyPrefix property is set internal bool IsSetS3KeyPrefix() { return this._s3KeyPrefix != null; } /// <summary> /// Gets and sets the property SnsTopicARN. /// <para> /// Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications /// when log files are delivered. The format of a topic ARN is: /// </para> /// /// <para> /// <code>arn:aws:sns:us-east-2:123456789012:MyTopic</code> /// </para> /// </summary> public string SnsTopicARN { get { return this._snsTopicARN; } set { this._snsTopicARN = value; } } // Check to see if SnsTopicARN property is set internal bool IsSetSnsTopicARN() { return this._snsTopicARN != null; } /// <summary> /// Gets and sets the property SnsTopicName. /// <para> /// This field is no longer in use. Use <code>SnsTopicARN</code>. /// </para> /// </summary> [Obsolete("This field is deprecated. Use SnsTopicARN.")] public string SnsTopicName { get { return this._snsTopicName; } set { this._snsTopicName = value; } } // Check to see if SnsTopicName property is set internal bool IsSetSnsTopicName() { return this._snsTopicName != null; } /// <summary> /// Gets and sets the property TrailARN. /// <para> /// Specifies the ARN of the trail that was created. The format of a trail ARN is: /// </para> /// /// <para> /// <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> /// </para> /// </summary> public string TrailARN { get { return this._trailARN; } set { this._trailARN = value; } } // Check to see if TrailARN property is set internal bool IsSetTrailARN() { return this._trailARN != null; } } }
306
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The Amazon S3 buckets, Lambda functions, or Amazon DynamoDB tables that you specify /// in your event selectors for your trail to log data events. Data events provide information /// about the resource operations performed on or within a resource itself. These are /// also known as data plane operations. You can specify up to 250 data resources for /// a trail. /// /// <note> /// <para> /// The total number of allowed data resources is 250. This number can be distributed /// between 1 and 5 event selectors, but the total cannot exceed 250 across all selectors /// for the trail. /// </para> /// /// <para> /// If you are using advanced event selectors, the maximum total number of values for /// all conditions, across all advanced event selectors for the trail, is 500. /// </para> /// </note> /// <para> /// The following example demonstrates how logging works when you configure logging of /// all data events for an S3 bucket named <code>bucket-1</code>. In this example, the /// CloudTrail user specified an empty prefix, and the option to log both <code>Read</code> /// and <code>Write</code> data events. /// </para> /// <ol> <li> /// <para> /// A user uploads an image file to <code>bucket-1</code>. /// </para> /// </li> <li> /// <para> /// The <code>PutObject</code> API operation is an Amazon S3 object-level API. It is recorded /// as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket /// with an empty prefix, events that occur on any object in that bucket are logged. The /// trail processes and logs the event. /// </para> /// </li> <li> /// <para> /// A user uploads an object to an Amazon S3 bucket named <code>arn:aws:s3:::bucket-2</code>. /// </para> /// </li> <li> /// <para> /// The <code>PutObject</code> API operation occurred for an object in an S3 bucket that /// the CloudTrail user didn't specify for the trail. The trail doesn’t log the event. /// </para> /// </li> </ol> /// <para> /// The following example demonstrates how logging works when you configure logging of /// Lambda data events for a Lambda function named <i>MyLambdaFunction</i>, but not for /// all Lambda functions. /// </para> /// <ol> <li> /// <para> /// A user runs a script that includes a call to the <i>MyLambdaFunction</i> function /// and the <i>MyOtherLambdaFunction</i> function. /// </para> /// </li> <li> /// <para> /// The <code>Invoke</code> API operation on <i>MyLambdaFunction</i> is an Lambda API. /// It is recorded as a data event in CloudTrail. Because the CloudTrail user specified /// logging data events for <i>MyLambdaFunction</i>, any invocations of that function /// are logged. The trail processes and logs the event. /// </para> /// </li> <li> /// <para> /// The <code>Invoke</code> API operation on <i>MyOtherLambdaFunction</i> is an Lambda /// API. Because the CloudTrail user did not specify logging data events for all Lambda /// functions, the <code>Invoke</code> operation for <i>MyOtherLambdaFunction</i> does /// not match the function specified for the trail. The trail doesn’t log the event. /// </para> /// </li> </ol> /// </summary> public partial class DataResource { private string _type; private List<string> _values = new List<string>(); /// <summary> /// Gets and sets the property Type. /// <para> /// The resource type in which you want to log data events. You can specify the following /// <i>basic</i> event selector resource types: /// </para> /// <ul> <li> /// <para> /// <code>AWS::DynamoDB::Table</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::Lambda::Function</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::S3::Object</code> /// </para> /// </li> </ul> /// <para> /// The following resource types are also available through <i>advanced</i> event selectors. /// Basic event selector resource types are valid in advanced event selectors, but advanced /// event selector resource types are not valid in basic event selectors. For more information, /// see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedFieldSelector.html">AdvancedFieldSelector</a>. /// </para> /// <ul> <li> /// <para> /// <code>AWS::CloudTrail::Channel</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::CodeWhisperer::Profile</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::Cognito::IdentityPool</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::DynamoDB::Stream</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::EC2::Snapshot</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::EMRWAL::Workspace</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::FinSpace::Environment</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::Glue::Table</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::GuardDuty::Detector</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::KendraRanking::ExecutionPlan</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::ManagedBlockchain::Node</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::SageMaker::ExperimentTrialComponent</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::SageMaker::FeatureGroup</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::S3::AccessPoint</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::S3ObjectLambda::AccessPoint</code> /// </para> /// </li> <li> /// <para> /// <code>AWS::S3Outposts::Object</code> /// </para> /// </li> </ul> /// </summary> public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Values. /// <para> /// An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified /// objects. /// </para> /// <ul> <li> /// <para> /// To log data events for all objects in all S3 buckets in your Amazon Web Services account, /// specify the prefix as <code>arn:aws:s3</code>. /// </para> /// <note> /// <para> /// This also enables logging of data event activity performed by any user or role in /// your Amazon Web Services account, even if that activity is performed on a bucket that /// belongs to another Amazon Web Services account. /// </para> /// </note> </li> <li> /// <para> /// To log data events for all objects in an S3 bucket, specify the bucket and an empty /// object prefix such as <code>arn:aws:s3:::bucket-1/</code>. The trail logs data events /// for all objects in this S3 bucket. /// </para> /// </li> <li> /// <para> /// To log data events for specific objects, specify the S3 bucket and object prefix such /// as <code>arn:aws:s3:::bucket-1/example-images</code>. The trail logs data events for /// objects in this S3 bucket that match the prefix. /// </para> /// </li> <li> /// <para> /// To log data events for all Lambda functions in your Amazon Web Services account, specify /// the prefix as <code>arn:aws:lambda</code>. /// </para> /// <note> /// <para> /// This also enables logging of <code>Invoke</code> activity performed by any user or /// role in your Amazon Web Services account, even if that activity is performed on a /// function that belongs to another Amazon Web Services account. /// </para> /// </note> </li> <li> /// <para> /// To log data events for a specific Lambda function, specify the function ARN. /// </para> /// <note> /// <para> /// Lambda function ARNs are exact. For example, if you specify a function ARN <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>, /// data events will only be logged for <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>. /// They will not be logged for <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld2</i>. /// </para> /// </note> </li> <li> /// <para> /// To log data events for all DynamoDB tables in your Amazon Web Services account, specify /// the prefix as <code>arn:aws:dynamodb</code>. /// </para> /// </li> </ul> /// </summary> public List<string> Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }
281
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the maximum number of CloudTrail delegated administrators /// is reached. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class DelegatedAdminAccountLimitExceededException : AmazonCloudTrailException { /// <summary> /// Constructs a new DelegatedAdminAccountLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public DelegatedAdminAccountLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of DelegatedAdminAccountLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public DelegatedAdminAccountLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of DelegatedAdminAccountLimitExceededException /// </summary> /// <param name="innerException"></param> public DelegatedAdminAccountLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of DelegatedAdminAccountLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DelegatedAdminAccountLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of DelegatedAdminAccountLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DelegatedAdminAccountLimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the DelegatedAdminAccountLimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected DelegatedAdminAccountLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the DeleteChannel operation. /// Deletes a channel. /// </summary> public partial class DeleteChannelRequest : AmazonCloudTrailRequest { private string _channel; /// <summary> /// Gets and sets the property Channel. /// <para> /// The ARN or the <code>UUID</code> value of the channel that you want to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=256)] public string Channel { get { return this._channel; } set { this._channel = value; } } // Check to see if Channel property is set internal bool IsSetChannel() { return this._channel != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the DeleteChannel operation. /// </summary> public partial class DeleteChannelResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the DeleteEventDataStore operation. /// Disables the event data store specified by <code>EventDataStore</code>, which accepts /// an event data store ARN. After you run <code>DeleteEventDataStore</code>, the event /// data store enters a <code>PENDING_DELETION</code> state, and is automatically deleted /// after a wait period of seven days. <code>TerminationProtectionEnabled</code> must /// be set to <code>False</code> on the event data store; this operation cannot work if /// <code>TerminationProtectionEnabled</code> is <code>True</code>. /// /// /// <para> /// After you run <code>DeleteEventDataStore</code> on an event data store, you cannot /// run <code>ListQueries</code>, <code>DescribeQuery</code>, or <code>GetQueryResults</code> /// on queries that are using an event data store in a <code>PENDING_DELETION</code> state. /// An event data store in the <code>PENDING_DELETION</code> state does not incur costs. /// </para> /// </summary> public partial class DeleteEventDataStoreRequest : AmazonCloudTrailRequest { private string _eventDataStore; /// <summary> /// Gets and sets the property EventDataStore. /// <para> /// The ARN (or the ID suffix of the ARN) of the event data store to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=256)] public string EventDataStore { get { return this._eventDataStore; } set { this._eventDataStore = value; } } // Check to see if EventDataStore property is set internal bool IsSetEventDataStore() { return this._eventDataStore != null; } } }
72
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the DeleteEventDataStore operation. /// </summary> public partial class DeleteEventDataStoreResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the DeleteResourcePolicy operation. /// Deletes the resource-based policy attached to the CloudTrail channel. /// </summary> public partial class DeleteResourcePolicyRequest : AmazonCloudTrailRequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the CloudTrail channel you're deleting the resource-based /// policy from. The following is the format of a resource ARN: <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel</code>. /// /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=256)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
61
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the DeleteResourcePolicy operation. /// </summary> public partial class DeleteResourcePolicyResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the DeleteTrail operation. /// Deletes a trail. This operation must be called from the Region in which the trail /// was created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated /// trails in other Regions) of a trail that is enabled in all Regions. /// </summary> public partial class DeleteTrailRequest : AmazonCloudTrailRequest { private string _name; /// <summary> /// Gets and sets the property Name. /// <para> /// Specifies the name or the CloudTrail ARN of the trail to be deleted. The following /// is the format of a trail ARN. <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> /// /// </para> /// </summary> [AWSProperty(Required=true)] 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; } } }
63
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Returns the objects or data listed below if successful. Otherwise, returns an error. /// </summary> public partial class DeleteTrailResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the DeregisterOrganizationDelegatedAdmin operation. /// Removes CloudTrail delegated administrator permissions from a member account in an /// organization. /// </summary> public partial class DeregisterOrganizationDelegatedAdminRequest : AmazonCloudTrailRequest { private string _delegatedAdminAccountId; /// <summary> /// Gets and sets the property DelegatedAdminAccountId. /// <para> /// A delegated administrator account ID. This is a member account in an organization /// that is currently designated as a delegated administrator. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=16)] public string DelegatedAdminAccountId { get { return this._delegatedAdminAccountId; } set { this._delegatedAdminAccountId = value; } } // Check to see if DelegatedAdminAccountId property is set internal bool IsSetDelegatedAdminAccountId() { return this._delegatedAdminAccountId != null; } } }
61
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Returns the following response if successful. Otherwise, returns an error. /// </summary> public partial class DeregisterOrganizationDelegatedAdminResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the DescribeQuery operation. /// Returns metadata about a query, including query run time in milliseconds, number of /// events scanned and matched, and query status. If the query results were delivered /// to an S3 bucket, the response also provides the S3 URI and the delivery status. /// /// /// <para> /// You must specify either a <code>QueryID</code> or a <code>QueryAlias</code>. Specifying /// the <code>QueryAlias</code> parameter returns information about the last query run /// for the alias. /// </para> /// </summary> public partial class DescribeQueryRequest : AmazonCloudTrailRequest { private string _eventDataStore; private string _queryAlias; private string _queryId; /// <summary> /// Gets and sets the property EventDataStore. /// <para> /// The ARN (or the ID suffix of the ARN) of an event data store on which the specified /// query was run. /// </para> /// </summary> [Obsolete("EventDataStore is no longer required by DescribeQueryRequest")] [AWSProperty(Min=3, Max=256)] public string EventDataStore { get { return this._eventDataStore; } set { this._eventDataStore = value; } } // Check to see if EventDataStore property is set internal bool IsSetEventDataStore() { return this._eventDataStore != null; } /// <summary> /// Gets and sets the property QueryAlias. /// <para> /// The alias that identifies a query template. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string QueryAlias { get { return this._queryAlias; } set { this._queryAlias = value; } } // Check to see if QueryAlias property is set internal bool IsSetQueryAlias() { return this._queryAlias != null; } /// <summary> /// Gets and sets the property QueryId. /// <para> /// The query ID. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string QueryId { get { return this._queryId; } set { this._queryId = value; } } // Check to see if QueryId property is set internal bool IsSetQueryId() { return this._queryId != null; } } }
110
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the DescribeQuery operation. /// </summary> public partial class DescribeQueryResponse : AmazonWebServiceResponse { private string _deliveryS3Uri; private DeliveryStatus _deliveryStatus; private string _errorMessage; private string _queryId; private QueryStatisticsForDescribeQuery _queryStatistics; private QueryStatus _queryStatus; private string _queryString; /// <summary> /// Gets and sets the property DeliveryS3Uri. /// <para> /// The URI for the S3 bucket where CloudTrail delivered query results, if applicable. /// </para> /// </summary> [AWSProperty(Max=1024)] public string DeliveryS3Uri { get { return this._deliveryS3Uri; } set { this._deliveryS3Uri = value; } } // Check to see if DeliveryS3Uri property is set internal bool IsSetDeliveryS3Uri() { return this._deliveryS3Uri != null; } /// <summary> /// Gets and sets the property DeliveryStatus. /// <para> /// The delivery status. /// </para> /// </summary> public DeliveryStatus DeliveryStatus { get { return this._deliveryStatus; } set { this._deliveryStatus = value; } } // Check to see if DeliveryStatus property is set internal bool IsSetDeliveryStatus() { return this._deliveryStatus != null; } /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// The error message returned if a query failed. /// </para> /// </summary> [AWSProperty(Min=4, Max=1000)] public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// <summary> /// Gets and sets the property QueryId. /// <para> /// The ID of the query. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string QueryId { get { return this._queryId; } set { this._queryId = value; } } // Check to see if QueryId property is set internal bool IsSetQueryId() { return this._queryId != null; } /// <summary> /// Gets and sets the property QueryStatistics. /// <para> /// Metadata about a query, including the number of events that were matched, the total /// number of events scanned, the query run time in milliseconds, and the query's creation /// time. /// </para> /// </summary> public QueryStatisticsForDescribeQuery QueryStatistics { get { return this._queryStatistics; } set { this._queryStatistics = value; } } // Check to see if QueryStatistics property is set internal bool IsSetQueryStatistics() { return this._queryStatistics != null; } /// <summary> /// Gets and sets the property QueryStatus. /// <para> /// The status of a query. Values for <code>QueryStatus</code> include <code>QUEUED</code>, /// <code>RUNNING</code>, <code>FINISHED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, /// or <code>CANCELLED</code> /// </para> /// </summary> public QueryStatus QueryStatus { get { return this._queryStatus; } set { this._queryStatus = value; } } // Check to see if QueryStatus property is set internal bool IsSetQueryStatus() { return this._queryStatus != null; } /// <summary> /// Gets and sets the property QueryString. /// <para> /// The SQL code of a query. /// </para> /// </summary> [AWSProperty(Min=1, Max=10000)] public string QueryString { get { return this._queryString; } set { this._queryString = value; } } // Check to see if QueryString property is set internal bool IsSetQueryString() { return this._queryString != null; } } }
179
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the DescribeTrails operation. /// Retrieves settings for one or more trails associated with the current Region for your /// account. /// </summary> public partial class DescribeTrailsRequest : AmazonCloudTrailRequest { private bool? _includeShadowTrails; private List<string> _trailNameList = new List<string>(); /// <summary> /// Gets and sets the property IncludeShadowTrails. /// <para> /// Specifies whether to include shadow trails in the response. A shadow trail is the /// replication in a Region of a trail that was created in a different Region, or in the /// case of an organization trail, the replication of an organization trail in member /// accounts. If you do not include shadow trails, organization trails in a member account /// and Region replication trails will not be returned. The default is true. /// </para> /// </summary> public bool IncludeShadowTrails { get { return this._includeShadowTrails.GetValueOrDefault(); } set { this._includeShadowTrails = value; } } // Check to see if IncludeShadowTrails property is set internal bool IsSetIncludeShadowTrails() { return this._includeShadowTrails.HasValue; } /// <summary> /// Gets and sets the property TrailNameList. /// <para> /// Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The /// format of a trail ARN is: /// </para> /// /// <para> /// <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> /// </para> /// /// <para> /// If an empty list is specified, information for the trail in the current Region is /// returned. /// </para> /// <ul> <li> /// <para> /// If an empty list is specified and <code>IncludeShadowTrails</code> is false, then /// information for all trails in the current Region is returned. /// </para> /// </li> <li> /// <para> /// If an empty list is specified and IncludeShadowTrails is null or true, then information /// for all trails in the current Region and any associated shadow trails in other Regions /// is returned. /// </para> /// </li> </ul> <note> /// <para> /// If one or more trail names are specified, information is returned only if the names /// match the names of trails belonging only to the current Region and current account. /// To return information about a trail in another Region, you must specify its trail /// ARN. /// </para> /// </note> /// </summary> public List<string> TrailNameList { get { return this._trailNameList; } set { this._trailNameList = value; } } // Check to see if TrailNameList property is set internal bool IsSetTrailNameList() { return this._trailNameList != null && this._trailNameList.Count > 0; } } }
111
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Returns the objects or data listed below if successful. Otherwise, returns an error. /// </summary> public partial class DescribeTrailsResponse : AmazonWebServiceResponse { private List<Trail> _trailList = new List<Trail>(); /// <summary> /// Gets and sets the property TrailList. /// <para> /// The list of trail objects. Trail objects with string values are only returned if values /// for the objects exist in a trail's configuration. For example, <code>SNSTopicName</code> /// and <code>SNSTopicARN</code> are only returned in results if a trail is configured /// to send SNS notifications. Similarly, <code>KMSKeyId</code> only appears in results /// if a trail's log files are encrypted with KMS customer managed keys. /// </para> /// </summary> public List<Trail> TrailList { get { return this._trailList; } set { this._trailList = value; } } // Check to see if TrailList property is set internal bool IsSetTrailList() { return this._trailList != null && this._trailList.Count > 0; } } }
61
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Contains information about the destination receiving events. /// </summary> public partial class Destination { private string _location; private DestinationType _type; /// <summary> /// Gets and sets the property Location. /// <para> /// For channels used for a CloudTrail Lake integration, the location is the ARN of an /// event data store that receives events from a channel. For service-linked channels, /// the location is the name of the Amazon Web Services service. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=1024)] public string Location { get { return this._location; } set { this._location = value; } } // Check to see if Location property is set internal bool IsSetLocation() { return this._location != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of destination for events arriving from a channel. For channels used for /// a CloudTrail Lake integration, the value is <code>EventDataStore</code>. For service-linked /// channels, the value is <code>AWS_SERVICE</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public DestinationType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
82
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Contains information about an event that was returned by a lookup request. The result /// includes a representation of a CloudTrail event. /// </summary> public partial class Event { private string _accessKeyId; private string _cloudTrailEvent; private string _eventId; private string _eventName; private string _eventSource; private DateTime? _eventTime; private string _readOnly; private List<Resource> _resources = new List<Resource>(); private string _username; /// <summary> /// Gets and sets the property AccessKeyId. /// <para> /// The Amazon Web Services access key ID that was used to sign the request. If the request /// was made with temporary security credentials, this is the access key ID of the temporary /// credentials. /// </para> /// </summary> public string AccessKeyId { get { return this._accessKeyId; } set { this._accessKeyId = value; } } // Check to see if AccessKeyId property is set internal bool IsSetAccessKeyId() { return this._accessKeyId != null; } /// <summary> /// Gets and sets the property CloudTrailEvent. /// <para> /// A JSON string that contains a representation of the event returned. /// </para> /// </summary> public string CloudTrailEvent { get { return this._cloudTrailEvent; } set { this._cloudTrailEvent = value; } } // Check to see if CloudTrailEvent property is set internal bool IsSetCloudTrailEvent() { return this._cloudTrailEvent != null; } /// <summary> /// Gets and sets the property EventId. /// <para> /// The CloudTrail ID of the event returned. /// </para> /// </summary> public string EventId { get { return this._eventId; } set { this._eventId = value; } } // Check to see if EventId property is set internal bool IsSetEventId() { return this._eventId != null; } /// <summary> /// Gets and sets the property EventName. /// <para> /// The name of the event returned. /// </para> /// </summary> public string EventName { get { return this._eventName; } set { this._eventName = value; } } // Check to see if EventName property is set internal bool IsSetEventName() { return this._eventName != null; } /// <summary> /// Gets and sets the property EventSource. /// <para> /// The Amazon Web Services service to which the request was made. /// </para> /// </summary> public string EventSource { get { return this._eventSource; } set { this._eventSource = value; } } // Check to see if EventSource property is set internal bool IsSetEventSource() { return this._eventSource != null; } /// <summary> /// Gets and sets the property EventTime. /// <para> /// The date and time of the event returned. /// </para> /// </summary> public DateTime EventTime { get { return this._eventTime.GetValueOrDefault(); } set { this._eventTime = value; } } // Check to see if EventTime property is set internal bool IsSetEventTime() { return this._eventTime.HasValue; } /// <summary> /// Gets and sets the property ReadOnly. /// <para> /// Information about whether the event is a write event or a read event. /// </para> /// </summary> public string ReadOnly { get { return this._readOnly; } set { this._readOnly = value; } } // Check to see if ReadOnly property is set internal bool IsSetReadOnly() { return this._readOnly != null; } /// <summary> /// Gets and sets the property Resources. /// <para> /// A list of resources referenced by the event returned. /// </para> /// </summary> public List<Resource> Resources { get { return this._resources; } set { this._resources = value; } } // Check to see if Resources property is set internal bool IsSetResources() { return this._resources != null && this._resources.Count > 0; } /// <summary> /// Gets and sets the property Username. /// <para> /// A user name or role name of the requester that called the API in the event returned. /// </para> /// </summary> public string Username { get { return this._username; } set { this._username = value; } } // Check to see if Username property is set internal bool IsSetUsername() { return this._username != null; } } }
212
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// A storage lake of event data against which you can run complex SQL-based queries. /// An event data store can include events that you have logged on your account from the /// last 90 to 2557 days (about three months to up to seven years). To select events for /// an event data store, use <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">advanced /// event selectors</a>. /// </summary> public partial class EventDataStore { private List<AdvancedEventSelector> _advancedEventSelectors = new List<AdvancedEventSelector>(); private DateTime? _createdTimestamp; private string _eventDataStoreArn; private bool? _multiRegionEnabled; private string _name; private bool? _organizationEnabled; private int? _retentionPeriod; private EventDataStoreStatus _status; private bool? _terminationProtectionEnabled; private DateTime? _updatedTimestamp; /// <summary> /// Gets and sets the property AdvancedEventSelectors. /// <para> /// The advanced event selectors that were used to select events for the data store. /// </para> /// </summary> [Obsolete("AdvancedEventSelectors is no longer returned by ListEventDataStores")] public List<AdvancedEventSelector> AdvancedEventSelectors { get { return this._advancedEventSelectors; } set { this._advancedEventSelectors = value; } } // Check to see if AdvancedEventSelectors property is set internal bool IsSetAdvancedEventSelectors() { return this._advancedEventSelectors != null && this._advancedEventSelectors.Count > 0; } /// <summary> /// Gets and sets the property CreatedTimestamp. /// <para> /// The timestamp of the event data store's creation. /// </para> /// </summary> [Obsolete("CreatedTimestamp is no longer returned by ListEventDataStores")] public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property EventDataStoreArn. /// <para> /// The ARN of the event data store. /// </para> /// </summary> [AWSProperty(Min=3, Max=256)] public string EventDataStoreArn { get { return this._eventDataStoreArn; } set { this._eventDataStoreArn = value; } } // Check to see if EventDataStoreArn property is set internal bool IsSetEventDataStoreArn() { return this._eventDataStoreArn != null; } /// <summary> /// Gets and sets the property MultiRegionEnabled. /// <para> /// Indicates whether the event data store includes events from all Regions, or only from /// the Region in which it was created. /// </para> /// </summary> [Obsolete("MultiRegionEnabled is no longer returned by ListEventDataStores")] public bool MultiRegionEnabled { get { return this._multiRegionEnabled.GetValueOrDefault(); } set { this._multiRegionEnabled = value; } } // Check to see if MultiRegionEnabled property is set internal bool IsSetMultiRegionEnabled() { return this._multiRegionEnabled.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the event data store. /// </para> /// </summary> [AWSProperty(Min=3, Max=128)] 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; } /// <summary> /// Gets and sets the property OrganizationEnabled. /// <para> /// Indicates that an event data store is collecting logged events for an organization. /// </para> /// </summary> [Obsolete("OrganizationEnabled is no longer returned by ListEventDataStores")] public bool OrganizationEnabled { get { return this._organizationEnabled.GetValueOrDefault(); } set { this._organizationEnabled = value; } } // Check to see if OrganizationEnabled property is set internal bool IsSetOrganizationEnabled() { return this._organizationEnabled.HasValue; } /// <summary> /// Gets and sets the property RetentionPeriod. /// <para> /// The retention period, in days. /// </para> /// </summary> [Obsolete("RetentionPeriod is no longer returned by ListEventDataStores")] [AWSProperty(Min=7, Max=2557)] public int RetentionPeriod { get { return this._retentionPeriod.GetValueOrDefault(); } set { this._retentionPeriod = value; } } // Check to see if RetentionPeriod property is set internal bool IsSetRetentionPeriod() { return this._retentionPeriod.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of an event data store. /// </para> /// </summary> [Obsolete("Status is no longer returned by ListEventDataStores")] public EventDataStoreStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property TerminationProtectionEnabled. /// <para> /// Indicates whether the event data store is protected from termination. /// </para> /// </summary> [Obsolete("TerminationProtectionEnabled is no longer returned by ListEventDataStores")] public bool TerminationProtectionEnabled { get { return this._terminationProtectionEnabled.GetValueOrDefault(); } set { this._terminationProtectionEnabled = value; } } // Check to see if TerminationProtectionEnabled property is set internal bool IsSetTerminationProtectionEnabled() { return this._terminationProtectionEnabled.HasValue; } /// <summary> /// Gets and sets the property UpdatedTimestamp. /// <para> /// The timestamp showing when an event data store was updated, if applicable. <code>UpdatedTimestamp</code> /// is always either the same or newer than the time shown in <code>CreatedTimestamp</code>. /// </para> /// </summary> [Obsolete("UpdatedTimestamp is no longer returned by ListEventDataStores")] public DateTime UpdatedTimestamp { get { return this._updatedTimestamp.GetValueOrDefault(); } set { this._updatedTimestamp = value; } } // Check to see if UpdatedTimestamp property is set internal bool IsSetUpdatedTimestamp() { return this._updatedTimestamp.HasValue; } } }
245
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// An event data store with that name already exists. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class EventDataStoreAlreadyExistsException : AmazonCloudTrailException { /// <summary> /// Constructs a new EventDataStoreAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public EventDataStoreAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of EventDataStoreAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public EventDataStoreAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of EventDataStoreAlreadyExistsException /// </summary> /// <param name="innerException"></param> public EventDataStoreAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of EventDataStoreAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of EventDataStoreAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreAlreadyExistsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the EventDataStoreAlreadyExistsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected EventDataStoreAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The specified event data store ARN is not valid or does not map to an event data store /// in your account. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class EventDataStoreARNInvalidException : AmazonCloudTrailException { /// <summary> /// Constructs a new EventDataStoreARNInvalidException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public EventDataStoreARNInvalidException(string message) : base(message) {} /// <summary> /// Construct instance of EventDataStoreARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public EventDataStoreARNInvalidException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of EventDataStoreARNInvalidException /// </summary> /// <param name="innerException"></param> public EventDataStoreARNInvalidException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of EventDataStoreARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreARNInvalidException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of EventDataStoreARNInvalidException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreARNInvalidException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the EventDataStoreARNInvalidException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected EventDataStoreARNInvalidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when you try to update or delete an event data store that /// currently has an import in progress. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class EventDataStoreHasOngoingImportException : AmazonCloudTrailException { /// <summary> /// Constructs a new EventDataStoreHasOngoingImportException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public EventDataStoreHasOngoingImportException(string message) : base(message) {} /// <summary> /// Construct instance of EventDataStoreHasOngoingImportException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public EventDataStoreHasOngoingImportException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of EventDataStoreHasOngoingImportException /// </summary> /// <param name="innerException"></param> public EventDataStoreHasOngoingImportException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of EventDataStoreHasOngoingImportException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreHasOngoingImportException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of EventDataStoreHasOngoingImportException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreHasOngoingImportException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the EventDataStoreHasOngoingImportException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected EventDataStoreHasOngoingImportException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Your account has used the maximum number of event data stores. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class EventDataStoreMaxLimitExceededException : AmazonCloudTrailException { /// <summary> /// Constructs a new EventDataStoreMaxLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public EventDataStoreMaxLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of EventDataStoreMaxLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public EventDataStoreMaxLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of EventDataStoreMaxLimitExceededException /// </summary> /// <param name="innerException"></param> public EventDataStoreMaxLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of EventDataStoreMaxLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreMaxLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of EventDataStoreMaxLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreMaxLimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the EventDataStoreMaxLimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected EventDataStoreMaxLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The specified event data store was not found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class EventDataStoreNotFoundException : AmazonCloudTrailException { /// <summary> /// Constructs a new EventDataStoreNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public EventDataStoreNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of EventDataStoreNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public EventDataStoreNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of EventDataStoreNotFoundException /// </summary> /// <param name="innerException"></param> public EventDataStoreNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of EventDataStoreNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of EventDataStoreNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the EventDataStoreNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected EventDataStoreNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The event data store cannot be deleted because termination protection is enabled for /// it. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class EventDataStoreTerminationProtectedException : AmazonCloudTrailException { /// <summary> /// Constructs a new EventDataStoreTerminationProtectedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public EventDataStoreTerminationProtectedException(string message) : base(message) {} /// <summary> /// Construct instance of EventDataStoreTerminationProtectedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public EventDataStoreTerminationProtectedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of EventDataStoreTerminationProtectedException /// </summary> /// <param name="innerException"></param> public EventDataStoreTerminationProtectedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of EventDataStoreTerminationProtectedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreTerminationProtectedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of EventDataStoreTerminationProtectedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public EventDataStoreTerminationProtectedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the EventDataStoreTerminationProtectedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected EventDataStoreTerminationProtectedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Use event selectors to further specify the management and data event settings for /// your trail. By default, trails created without specific event selectors will be configured /// to log all read and write management events, and no data events. When an event occurs /// in your account, CloudTrail evaluates the event selector for all trails. For each /// trail, if the event matches any event selector, the trail processes and logs the event. /// If the event doesn't match any event selector, the trail doesn't log the event. /// /// /// <para> /// You can configure up to five event selectors for a trail. /// </para> /// /// <para> /// You cannot apply both event selectors and advanced event selectors to a trail. /// </para> /// </summary> public partial class EventSelector { private List<DataResource> _dataResources = new List<DataResource>(); private List<string> _excludeManagementEventSources = new List<string>(); private bool? _includeManagementEvents; private ReadWriteType _readWriteType; /// <summary> /// Gets and sets the property DataResources. /// <para> /// CloudTrail supports data event logging for Amazon S3 objects, Lambda functions, and /// Amazon DynamoDB tables with basic event selectors. You can specify up to 250 resources /// for an individual event selector, but the total number of data resources cannot exceed /// 250 across all event selectors in a trail. This limit does not apply if you configure /// resource logging for all data events. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Data /// Events</a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Limits /// in CloudTrail</a> in the <i>CloudTrail User Guide</i>. /// </para> /// </summary> public List<DataResource> DataResources { get { return this._dataResources; } set { this._dataResources = value; } } // Check to see if DataResources property is set internal bool IsSetDataResources() { return this._dataResources != null && this._dataResources.Count > 0; } /// <summary> /// Gets and sets the property ExcludeManagementEventSources. /// <para> /// An optional list of service event sources from which you do not want management events /// to be logged on your trail. In this release, the list can be empty (disables the filter), /// or it can filter out Key Management Service or Amazon RDS Data API events by containing /// <code>kms.amazonaws.com</code> or <code>rdsdata.amazonaws.com</code>. By default, /// <code>ExcludeManagementEventSources</code> is empty, and KMS and Amazon RDS Data API /// events are logged to your trail. You can exclude management event sources only in /// Regions that support the event source. /// </para> /// </summary> public List<string> ExcludeManagementEventSources { get { return this._excludeManagementEventSources; } set { this._excludeManagementEventSources = value; } } // Check to see if ExcludeManagementEventSources property is set internal bool IsSetExcludeManagementEventSources() { return this._excludeManagementEventSources != null && this._excludeManagementEventSources.Count > 0; } /// <summary> /// Gets and sets the property IncludeManagementEvents. /// <para> /// Specify if you want your event selector to include management events for your trail. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Management /// Events</a> in the <i>CloudTrail User Guide</i>. /// </para> /// /// <para> /// By default, the value is <code>true</code>. /// </para> /// /// <para> /// The first copy of management events is free. You are charged for additional copies /// of management events that you are logging on any subsequent trail in the same Region. /// For more information about CloudTrail pricing, see <a href="http://aws.amazon.com/cloudtrail/pricing/">CloudTrail /// Pricing</a>. /// </para> /// </summary> public bool IncludeManagementEvents { get { return this._includeManagementEvents.GetValueOrDefault(); } set { this._includeManagementEvents = value; } } // Check to see if IncludeManagementEvents property is set internal bool IsSetIncludeManagementEvents() { return this._includeManagementEvents.HasValue; } /// <summary> /// Gets and sets the property ReadWriteType. /// <para> /// Specify if you want your trail to log read-only events, write-only events, or all. /// For example, the EC2 <code>GetConsoleOutput</code> is a read-only API operation and /// <code>RunInstances</code> is a write-only API operation. /// </para> /// /// <para> /// By default, the value is <code>All</code>. /// </para> /// </summary> public ReadWriteType ReadWriteType { get { return this._readWriteType; } set { this._readWriteType = value; } } // Check to see if ReadWriteType property is set internal bool IsSetReadWriteType() { return this._readWriteType != null; } } }
166
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetChannel operation. /// Returns information about a specific channel. /// </summary> public partial class GetChannelRequest : AmazonCloudTrailRequest { private string _channel; /// <summary> /// Gets and sets the property Channel. /// <para> /// The ARN or <code>UUID</code> of a channel. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=256)] public string Channel { get { return this._channel; } set { this._channel = value; } } // Check to see if Channel property is set internal bool IsSetChannel() { return this._channel != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the GetChannel operation. /// </summary> public partial class GetChannelResponse : AmazonWebServiceResponse { private string _channelArn; private List<Destination> _destinations = new List<Destination>(); private IngestionStatus _ingestionStatus; private string _name; private string _source; private SourceConfig _sourceConfig; /// <summary> /// Gets and sets the property ChannelArn. /// <para> /// The ARN of an channel returned by a <code>GetChannel</code> request. /// </para> /// </summary> [AWSProperty(Min=3, Max=256)] public string ChannelArn { get { return this._channelArn; } set { this._channelArn = value; } } // Check to see if ChannelArn property is set internal bool IsSetChannelArn() { return this._channelArn != null; } /// <summary> /// Gets and sets the property Destinations. /// <para> /// The destinations for the channel. For channels created for integrations, the destinations /// are the event data stores that log events arriving through the channel. For service-linked /// channels, the destination is the Amazon Web Services service that created the service-linked /// channel to receive events. /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public List<Destination> Destinations { get { return this._destinations; } set { this._destinations = value; } } // Check to see if Destinations property is set internal bool IsSetDestinations() { return this._destinations != null && this._destinations.Count > 0; } /// <summary> /// Gets and sets the property IngestionStatus. /// <para> /// A table showing information about the most recent successful and failed attempts to /// ingest events. /// </para> /// </summary> public IngestionStatus IngestionStatus { get { return this._ingestionStatus; } set { this._ingestionStatus = value; } } // Check to see if IngestionStatus property is set internal bool IsSetIngestionStatus() { return this._ingestionStatus != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the CloudTrail channel. For service-linked channels, the name is <code>aws-service-channel/service-name/custom-suffix</code> /// where <code>service-name</code> represents the name of the Amazon Web Services service /// that created the channel and <code>custom-suffix</code> represents the suffix generated /// by the Amazon Web Services service. /// </para> /// </summary> [AWSProperty(Min=3, Max=128)] 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; } /// <summary> /// Gets and sets the property Source. /// <para> /// The source for the CloudTrail channel. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string Source { get { return this._source; } set { this._source = value; } } // Check to see if Source property is set internal bool IsSetSource() { return this._source != null; } /// <summary> /// Gets and sets the property SourceConfig. /// <para> /// Provides information about the advanced event selectors configured for the channel, /// and whether the channel applies to all Regions or a single Region. /// </para> /// </summary> public SourceConfig SourceConfig { get { return this._sourceConfig; } set { this._sourceConfig = value; } } // Check to see if SourceConfig property is set internal bool IsSetSourceConfig() { return this._sourceConfig != null; } } }
164
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetEventDataStore operation. /// Returns information about an event data store specified as either an ARN or the ID /// portion of the ARN. /// </summary> public partial class GetEventDataStoreRequest : AmazonCloudTrailRequest { private string _eventDataStore; /// <summary> /// Gets and sets the property EventDataStore. /// <para> /// The ARN (or ID suffix of the ARN) of the event data store about which you want information. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=256)] public string EventDataStore { get { return this._eventDataStore; } set { this._eventDataStore = value; } } // Check to see if EventDataStore property is set internal bool IsSetEventDataStore() { return this._eventDataStore != null; } } }
60
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the GetEventDataStore operation. /// </summary> public partial class GetEventDataStoreResponse : AmazonWebServiceResponse { private List<AdvancedEventSelector> _advancedEventSelectors = new List<AdvancedEventSelector>(); private DateTime? _createdTimestamp; private string _eventDataStoreArn; private string _kmsKeyId; private bool? _multiRegionEnabled; private string _name; private bool? _organizationEnabled; private int? _retentionPeriod; private EventDataStoreStatus _status; private bool? _terminationProtectionEnabled; private DateTime? _updatedTimestamp; /// <summary> /// Gets and sets the property AdvancedEventSelectors. /// <para> /// The advanced event selectors used to select events for the data store. /// </para> /// </summary> public List<AdvancedEventSelector> AdvancedEventSelectors { get { return this._advancedEventSelectors; } set { this._advancedEventSelectors = value; } } // Check to see if AdvancedEventSelectors property is set internal bool IsSetAdvancedEventSelectors() { return this._advancedEventSelectors != null && this._advancedEventSelectors.Count > 0; } /// <summary> /// Gets and sets the property CreatedTimestamp. /// <para> /// The timestamp of the event data store's creation. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property EventDataStoreArn. /// <para> /// The event data store Amazon Resource Number (ARN). /// </para> /// </summary> [AWSProperty(Min=3, Max=256)] public string EventDataStoreArn { get { return this._eventDataStoreArn; } set { this._eventDataStoreArn = value; } } // Check to see if EventDataStoreArn property is set internal bool IsSetEventDataStoreArn() { return this._eventDataStoreArn != null; } /// <summary> /// Gets and sets the property KmsKeyId. /// <para> /// Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value /// is a fully specified ARN to a KMS key in the following format. /// </para> /// /// <para> /// <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </summary> [AWSProperty(Min=1, Max=350)] 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; } /// <summary> /// Gets and sets the property MultiRegionEnabled. /// <para> /// Indicates whether the event data store includes events from all Regions, or only from /// the Region in which it was created. /// </para> /// </summary> public bool MultiRegionEnabled { get { return this._multiRegionEnabled.GetValueOrDefault(); } set { this._multiRegionEnabled = value; } } // Check to see if MultiRegionEnabled property is set internal bool IsSetMultiRegionEnabled() { return this._multiRegionEnabled.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the event data store. /// </para> /// </summary> [AWSProperty(Min=3, Max=128)] 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; } /// <summary> /// Gets and sets the property OrganizationEnabled. /// <para> /// Indicates whether an event data store is collecting logged events for an organization /// in Organizations. /// </para> /// </summary> public bool OrganizationEnabled { get { return this._organizationEnabled.GetValueOrDefault(); } set { this._organizationEnabled = value; } } // Check to see if OrganizationEnabled property is set internal bool IsSetOrganizationEnabled() { return this._organizationEnabled.HasValue; } /// <summary> /// Gets and sets the property RetentionPeriod. /// <para> /// The retention period of the event data store, in days. /// </para> /// </summary> [AWSProperty(Min=7, Max=2557)] public int RetentionPeriod { get { return this._retentionPeriod.GetValueOrDefault(); } set { this._retentionPeriod = value; } } // Check to see if RetentionPeriod property is set internal bool IsSetRetentionPeriod() { return this._retentionPeriod.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of an event data store. /// </para> /// </summary> public EventDataStoreStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property TerminationProtectionEnabled. /// <para> /// Indicates that termination protection is enabled. /// </para> /// </summary> public bool TerminationProtectionEnabled { get { return this._terminationProtectionEnabled.GetValueOrDefault(); } set { this._terminationProtectionEnabled = value; } } // Check to see if TerminationProtectionEnabled property is set internal bool IsSetTerminationProtectionEnabled() { return this._terminationProtectionEnabled.HasValue; } /// <summary> /// Gets and sets the property UpdatedTimestamp. /// <para> /// Shows the time that an event data store was updated, if applicable. <code>UpdatedTimestamp</code> /// is always either the same or newer than the time shown in <code>CreatedTimestamp</code>. /// </para> /// </summary> public DateTime UpdatedTimestamp { get { return this._updatedTimestamp.GetValueOrDefault(); } set { this._updatedTimestamp = value; } } // Check to see if UpdatedTimestamp property is set internal bool IsSetUpdatedTimestamp() { return this._updatedTimestamp.HasValue; } } }
260
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetEventSelectors operation. /// Describes the settings for the event selectors that you configured for your trail. /// The information returned for your event selectors includes the following: /// /// <ul> <li> /// <para> /// If your event selector includes read-only events, write-only events, or all events. /// This applies to both management events and data events. /// </para> /// </li> <li> /// <para> /// If your event selector includes management events. /// </para> /// </li> <li> /// <para> /// If your event selector includes data events, the resources on which you are logging /// data events. /// </para> /// </li> </ul> /// <para> /// For more information about logging management and data events, see the following topics /// in the <i>CloudTrail User Guide</i>: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Logging /// management events</a> /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging /// data events</a> /// </para> /// </li> </ul> /// </summary> public partial class GetEventSelectorsRequest : AmazonCloudTrailRequest { private string _trailName; /// <summary> /// Gets and sets the property TrailName. /// <para> /// Specifies the name of the trail or trail ARN. If you specify a trail name, the string /// must meet the following requirements: /// </para> /// <ul> <li> /// <para> /// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), /// or dashes (-) /// </para> /// </li> <li> /// <para> /// Start with a letter or number, and end with a letter or number /// </para> /// </li> <li> /// <para> /// Be between 3 and 128 characters /// </para> /// </li> <li> /// <para> /// Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code> /// and <code>my--namespace</code> are not valid. /// </para> /// </li> <li> /// <para> /// Not be in IP address format (for example, 192.168.5.4) /// </para> /// </li> </ul> /// <para> /// If you specify a trail ARN, it must be in the format: /// </para> /// /// <para> /// <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> /// </para> /// </summary> [AWSProperty(Required=true)] public string TrailName { get { return this._trailName; } set { this._trailName = value; } } // Check to see if TrailName property is set internal bool IsSetTrailName() { return this._trailName != null; } } }
122
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the GetEventSelectors operation. /// </summary> public partial class GetEventSelectorsResponse : AmazonWebServiceResponse { private List<AdvancedEventSelector> _advancedEventSelectors = new List<AdvancedEventSelector>(); private List<EventSelector> _eventSelectors = new List<EventSelector>(); private string _trailARN; /// <summary> /// Gets and sets the property AdvancedEventSelectors. /// <para> /// The advanced event selectors that are configured for the trail. /// </para> /// </summary> public List<AdvancedEventSelector> AdvancedEventSelectors { get { return this._advancedEventSelectors; } set { this._advancedEventSelectors = value; } } // Check to see if AdvancedEventSelectors property is set internal bool IsSetAdvancedEventSelectors() { return this._advancedEventSelectors != null && this._advancedEventSelectors.Count > 0; } /// <summary> /// Gets and sets the property EventSelectors. /// <para> /// The event selectors that are configured for the trail. /// </para> /// </summary> public List<EventSelector> EventSelectors { get { return this._eventSelectors; } set { this._eventSelectors = value; } } // Check to see if EventSelectors property is set internal bool IsSetEventSelectors() { return this._eventSelectors != null && this._eventSelectors.Count > 0; } /// <summary> /// Gets and sets the property TrailARN. /// <para> /// The specified trail ARN that has the event selectors. /// </para> /// </summary> public string TrailARN { get { return this._trailARN; } set { this._trailARN = value; } } // Check to see if TrailARN property is set internal bool IsSetTrailARN() { return this._trailARN != null; } } }
95
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetImport operation. /// Returns information about a specific import. /// </summary> public partial class GetImportRequest : AmazonCloudTrailRequest { private string _importId; /// <summary> /// Gets and sets the property ImportId. /// <para> /// The ID for the import. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ImportId { get { return this._importId; } set { this._importId = value; } } // Check to see if ImportId property is set internal bool IsSetImportId() { return this._importId != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the GetImport operation. /// </summary> public partial class GetImportResponse : AmazonWebServiceResponse { private DateTime? _createdTimestamp; private List<string> _destinations = new List<string>(); private DateTime? _endEventTime; private string _importId; private ImportSource _importSource; private ImportStatistics _importStatistics; private ImportStatus _importStatus; private DateTime? _startEventTime; private DateTime? _updatedTimestamp; /// <summary> /// Gets and sets the property CreatedTimestamp. /// <para> /// The timestamp of the import's creation. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property Destinations. /// <para> /// The ARN of the destination event data store. /// </para> /// </summary> [AWSProperty(Min=1, Max=1)] public List<string> Destinations { get { return this._destinations; } set { this._destinations = value; } } // Check to see if Destinations property is set internal bool IsSetDestinations() { return this._destinations != null && this._destinations.Count > 0; } /// <summary> /// Gets and sets the property EndEventTime. /// <para> /// Used with <code>StartEventTime</code> to bound a <code>StartImport</code> request, /// and limit imported trail events to only those events logged within a specified time /// period. /// </para> /// </summary> public DateTime EndEventTime { get { return this._endEventTime.GetValueOrDefault(); } set { this._endEventTime = value; } } // Check to see if EndEventTime property is set internal bool IsSetEndEventTime() { return this._endEventTime.HasValue; } /// <summary> /// Gets and sets the property ImportId. /// <para> /// The ID of the import. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string ImportId { get { return this._importId; } set { this._importId = value; } } // Check to see if ImportId property is set internal bool IsSetImportId() { return this._importId != null; } /// <summary> /// Gets and sets the property ImportSource. /// <para> /// The source S3 bucket. /// </para> /// </summary> public ImportSource ImportSource { get { return this._importSource; } set { this._importSource = value; } } // Check to see if ImportSource property is set internal bool IsSetImportSource() { return this._importSource != null; } /// <summary> /// Gets and sets the property ImportStatistics. /// <para> /// Provides statistics for the import. CloudTrail does not update import statistics /// in real-time. Returned values for parameters such as <code>EventsCompleted</code> /// may be lower than the actual value, because CloudTrail updates statistics incrementally /// over the course of the import. /// </para> /// </summary> public ImportStatistics ImportStatistics { get { return this._importStatistics; } set { this._importStatistics = value; } } // Check to see if ImportStatistics property is set internal bool IsSetImportStatistics() { return this._importStatistics != null; } /// <summary> /// Gets and sets the property ImportStatus. /// <para> /// The status of the import. /// </para> /// </summary> public ImportStatus ImportStatus { get { return this._importStatus; } set { this._importStatus = value; } } // Check to see if ImportStatus property is set internal bool IsSetImportStatus() { return this._importStatus != null; } /// <summary> /// Gets and sets the property StartEventTime. /// <para> /// Used with <code>EndEventTime</code> to bound a <code>StartImport</code> request, /// and limit imported trail events to only those events logged within a specified time /// period. /// </para> /// </summary> public DateTime StartEventTime { get { return this._startEventTime.GetValueOrDefault(); } set { this._startEventTime = value; } } // Check to see if StartEventTime property is set internal bool IsSetStartEventTime() { return this._startEventTime.HasValue; } /// <summary> /// Gets and sets the property UpdatedTimestamp. /// <para> /// The timestamp of when the import was updated. /// </para> /// </summary> public DateTime UpdatedTimestamp { get { return this._updatedTimestamp.GetValueOrDefault(); } set { this._updatedTimestamp = value; } } // Check to see if UpdatedTimestamp property is set internal bool IsSetUpdatedTimestamp() { return this._updatedTimestamp.HasValue; } } }
218
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetInsightSelectors operation. /// Describes the settings for the Insights event selectors that you configured for your /// trail. <code>GetInsightSelectors</code> shows if CloudTrail Insights event logging /// is enabled on the trail, and if it is, which insight types are enabled. If you run /// <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, /// the operation throws the exception <code>InsightNotEnabledException</code> /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">Logging /// CloudTrail Insights Events for Trails </a> in the <i>CloudTrail User Guide</i>. /// </para> /// </summary> public partial class GetInsightSelectorsRequest : AmazonCloudTrailRequest { private string _trailName; /// <summary> /// Gets and sets the property TrailName. /// <para> /// Specifies the name of the trail or trail ARN. If you specify a trail name, the string /// must meet the following requirements: /// </para> /// <ul> <li> /// <para> /// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), /// or dashes (-) /// </para> /// </li> <li> /// <para> /// Start with a letter or number, and end with a letter or number /// </para> /// </li> <li> /// <para> /// Be between 3 and 128 characters /// </para> /// </li> <li> /// <para> /// Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code> /// and <code>my--namespace</code> are not valid. /// </para> /// </li> <li> /// <para> /// Not be in IP address format (for example, 192.168.5.4) /// </para> /// </li> </ul> /// <para> /// If you specify a trail ARN, it must be in the format: /// </para> /// /// <para> /// <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> /// </para> /// </summary> [AWSProperty(Required=true)] public string TrailName { get { return this._trailName; } set { this._trailName = value; } } // Check to see if TrailName property is set internal bool IsSetTrailName() { return this._trailName != null; } } }
100
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the GetInsightSelectors operation. /// </summary> public partial class GetInsightSelectorsResponse : AmazonWebServiceResponse { private List<InsightSelector> _insightSelectors = new List<InsightSelector>(); private string _trailARN; /// <summary> /// Gets and sets the property InsightSelectors. /// <para> /// A JSON string that contains the insight types you want to log on a trail. In this /// release, <code>ApiErrorRateInsight</code> and <code>ApiCallRateInsight</code> are /// supported as insight types. /// </para> /// </summary> public List<InsightSelector> InsightSelectors { get { return this._insightSelectors; } set { this._insightSelectors = value; } } // Check to see if InsightSelectors property is set internal bool IsSetInsightSelectors() { return this._insightSelectors != null && this._insightSelectors.Count > 0; } /// <summary> /// Gets and sets the property TrailARN. /// <para> /// The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors. /// </para> /// </summary> public string TrailARN { get { return this._trailARN; } set { this._trailARN = value; } } // Check to see if TrailARN property is set internal bool IsSetTrailARN() { return this._trailARN != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetQueryResults operation. /// Gets event data results of a query. You must specify the <code>QueryID</code> value /// returned by the <code>StartQuery</code> operation. /// </summary> public partial class GetQueryResultsRequest : AmazonCloudTrailRequest { private string _eventDataStore; private int? _maxQueryResults; private string _nextToken; private string _queryId; /// <summary> /// Gets and sets the property EventDataStore. /// <para> /// The ARN (or ID suffix of the ARN) of the event data store against which the query /// was run. /// </para> /// </summary> [Obsolete("EventDataStore is no longer required by GetQueryResultsRequest")] [AWSProperty(Min=3, Max=256)] public string EventDataStore { get { return this._eventDataStore; } set { this._eventDataStore = value; } } // Check to see if EventDataStore property is set internal bool IsSetEventDataStore() { return this._eventDataStore != null; } /// <summary> /// Gets and sets the property MaxQueryResults. /// <para> /// The maximum number of query results to display on a single page. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public int MaxQueryResults { get { return this._maxQueryResults.GetValueOrDefault(); } set { this._maxQueryResults = value; } } // Check to see if MaxQueryResults property is set internal bool IsSetMaxQueryResults() { return this._maxQueryResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token you can use to get the next page of query results. /// </para> /// </summary> [AWSProperty(Min=4, Max=1000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property QueryId. /// <para> /// The ID of the query for which you want to get results. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string QueryId { get { return this._queryId; } set { this._queryId = value; } } // Check to see if QueryId property is set internal bool IsSetQueryId() { return this._queryId != null; } } }
122
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the GetQueryResults operation. /// </summary> public partial class GetQueryResultsResponse : AmazonWebServiceResponse { private string _errorMessage; private string _nextToken; private List<List<Dictionary<string, string>>> _queryResultRows = new List<List<Dictionary<string, string>>>(); private QueryStatistics _queryStatistics; private QueryStatus _queryStatus; /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// The error message returned if a query failed. /// </para> /// </summary> [AWSProperty(Min=4, Max=1000)] public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token you can use to get the next page of query results. /// </para> /// </summary> [AWSProperty(Min=4, Max=1000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property QueryResultRows. /// <para> /// Contains the individual event results of the query. /// </para> /// </summary> public List<List<Dictionary<string, string>>> QueryResultRows { get { return this._queryResultRows; } set { this._queryResultRows = value; } } // Check to see if QueryResultRows property is set internal bool IsSetQueryResultRows() { return this._queryResultRows != null && this._queryResultRows.Count > 0; } /// <summary> /// Gets and sets the property QueryStatistics. /// <para> /// Shows the count of query results. /// </para> /// </summary> public QueryStatistics QueryStatistics { get { return this._queryStatistics; } set { this._queryStatistics = value; } } // Check to see if QueryStatistics property is set internal bool IsSetQueryStatistics() { return this._queryStatistics != null; } /// <summary> /// Gets and sets the property QueryStatus. /// <para> /// The status of the query. Values include <code>QUEUED</code>, <code>RUNNING</code>, /// <code>FINISHED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>CANCELLED</code>. /// </para> /// </summary> public QueryStatus QueryStatus { get { return this._queryStatus; } set { this._queryStatus = value; } } // Check to see if QueryStatus property is set internal bool IsSetQueryStatus() { return this._queryStatus != null; } } }
136
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetResourcePolicy operation. /// Retrieves the JSON text of the resource-based policy document attached to the CloudTrail /// channel. /// </summary> public partial class GetResourcePolicyRequest : AmazonCloudTrailRequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based /// policy. The following is the format of a resource ARN: <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel</code>. /// /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=256)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
62
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the GetResourcePolicy operation. /// </summary> public partial class GetResourcePolicyResponse : AmazonWebServiceResponse { private string _resourceArn; private string _resourcePolicy; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the CloudTrail channel attached to resource-based /// policy. /// </para> /// </summary> [AWSProperty(Min=3, Max=256)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property ResourcePolicy. /// <para> /// A JSON-formatted string that contains the resource-based policy attached to the CloudTrail /// channel. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string ResourcePolicy { get { return this._resourcePolicy; } set { this._resourcePolicy = value; } } // Check to see if ResourcePolicy property is set internal bool IsSetResourcePolicy() { return this._resourcePolicy != null; } } }
80
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetTrail operation. /// Returns settings information for a specified trail. /// </summary> public partial class GetTrailRequest : AmazonCloudTrailRequest { private string _name; /// <summary> /// Gets and sets the property Name. /// <para> /// The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve /// settings information. /// </para> /// </summary> [AWSProperty(Required=true)] 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; } } }
60
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This is the response object from the GetTrail operation. /// </summary> public partial class GetTrailResponse : AmazonWebServiceResponse { private Trail _trail; /// <summary> /// Gets and sets the property Trail. /// </summary> public Trail Trail { get { return this._trail; } set { this._trail = value; } } // Check to see if Trail property is set internal bool IsSetTrail() { return this._trail != null; } } }
54
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Container for the parameters to the GetTrailStatus operation. /// Returns a JSON-formatted list of information about the specified trail. Fields include /// information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop /// logging times for each trail. This operation returns trail status from a single Region. /// To return trail status from all Regions, you must call the operation on each Region. /// </summary> public partial class GetTrailStatusRequest : AmazonCloudTrailRequest { private string _name; /// <summary> /// Gets and sets the property Name. /// <para> /// Specifies the name or the CloudTrail ARN of the trail for which you are requesting /// status. To get the status of a shadow trail (a replication of the trail in another /// Region), you must specify its ARN. The following is the format of a trail ARN. /// </para> /// /// <para> /// <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code> /// </para> /// </summary> [AWSProperty(Required=true)] 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; } } }
68
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Returns the objects or data listed below if successful. Otherwise, returns an error. /// </summary> public partial class GetTrailStatusResponse : AmazonWebServiceResponse { private bool? _isLogging; private string _latestCloudWatchLogsDeliveryError; private DateTime? _latestCloudWatchLogsDeliveryTime; private string _latestDeliveryAttemptSucceeded; private string _latestDeliveryAttemptTime; private string _latestDeliveryError; private DateTime? _latestDeliveryTime; private string _latestDigestDeliveryError; private DateTime? _latestDigestDeliveryTime; private string _latestNotificationAttemptSucceeded; private string _latestNotificationAttemptTime; private string _latestNotificationError; private DateTime? _latestNotificationTime; private DateTime? _startLoggingTime; private DateTime? _stopLoggingTime; private string _timeLoggingStarted; private string _timeLoggingStopped; /// <summary> /// Gets and sets the property IsLogging. /// <para> /// Whether the CloudTrail trail is currently logging Amazon Web Services API calls. /// </para> /// </summary> public bool IsLogging { get { return this._isLogging.GetValueOrDefault(); } set { this._isLogging = value; } } // Check to see if IsLogging property is set internal bool IsSetIsLogging() { return this._isLogging.HasValue; } /// <summary> /// Gets and sets the property LatestCloudWatchLogsDeliveryError. /// <para> /// Displays any CloudWatch Logs error that CloudTrail encountered when attempting to /// deliver logs to CloudWatch Logs. /// </para> /// </summary> public string LatestCloudWatchLogsDeliveryError { get { return this._latestCloudWatchLogsDeliveryError; } set { this._latestCloudWatchLogsDeliveryError = value; } } // Check to see if LatestCloudWatchLogsDeliveryError property is set internal bool IsSetLatestCloudWatchLogsDeliveryError() { return this._latestCloudWatchLogsDeliveryError != null; } /// <summary> /// Gets and sets the property LatestCloudWatchLogsDeliveryTime. /// <para> /// Displays the most recent date and time when CloudTrail delivered logs to CloudWatch /// Logs. /// </para> /// </summary> public DateTime LatestCloudWatchLogsDeliveryTime { get { return this._latestCloudWatchLogsDeliveryTime.GetValueOrDefault(); } set { this._latestCloudWatchLogsDeliveryTime = value; } } // Check to see if LatestCloudWatchLogsDeliveryTime property is set internal bool IsSetLatestCloudWatchLogsDeliveryTime() { return this._latestCloudWatchLogsDeliveryTime.HasValue; } /// <summary> /// Gets and sets the property LatestDeliveryAttemptSucceeded. /// <para> /// This field is no longer in use. /// </para> /// </summary> public string LatestDeliveryAttemptSucceeded { get { return this._latestDeliveryAttemptSucceeded; } set { this._latestDeliveryAttemptSucceeded = value; } } // Check to see if LatestDeliveryAttemptSucceeded property is set internal bool IsSetLatestDeliveryAttemptSucceeded() { return this._latestDeliveryAttemptSucceeded != null; } /// <summary> /// Gets and sets the property LatestDeliveryAttemptTime. /// <para> /// This field is no longer in use. /// </para> /// </summary> public string LatestDeliveryAttemptTime { get { return this._latestDeliveryAttemptTime; } set { this._latestDeliveryAttemptTime = value; } } // Check to see if LatestDeliveryAttemptTime property is set internal bool IsSetLatestDeliveryAttemptTime() { return this._latestDeliveryAttemptTime != null; } /// <summary> /// Gets and sets the property LatestDeliveryError. /// <para> /// Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver /// log files to the designated bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html">Error /// Responses</a> in the Amazon S3 API Reference. /// </para> /// <note> /// <para> /// This error occurs only when there is a problem with the destination S3 bucket, and /// does not occur for requests that time out. To resolve the issue, create a new bucket, /// and then call <code>UpdateTrail</code> to specify the new bucket; or fix the existing /// objects so that CloudTrail can again write to the bucket. /// </para> /// </note> /// </summary> public string LatestDeliveryError { get { return this._latestDeliveryError; } set { this._latestDeliveryError = value; } } // Check to see if LatestDeliveryError property is set internal bool IsSetLatestDeliveryError() { return this._latestDeliveryError != null; } /// <summary> /// Gets and sets the property LatestDeliveryTime. /// <para> /// Specifies the date and time that CloudTrail last delivered log files to an account's /// Amazon S3 bucket. /// </para> /// </summary> public DateTime LatestDeliveryTime { get { return this._latestDeliveryTime.GetValueOrDefault(); } set { this._latestDeliveryTime = value; } } // Check to see if LatestDeliveryTime property is set internal bool IsSetLatestDeliveryTime() { return this._latestDeliveryTime.HasValue; } /// <summary> /// Gets and sets the property LatestDigestDeliveryError. /// <para> /// Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver /// a digest file to the designated bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html">Error /// Responses</a> in the Amazon S3 API Reference. /// </para> /// <note> /// <para> /// This error occurs only when there is a problem with the destination S3 bucket, and /// does not occur for requests that time out. To resolve the issue, create a new bucket, /// and then call <code>UpdateTrail</code> to specify the new bucket; or fix the existing /// objects so that CloudTrail can again write to the bucket. /// </para> /// </note> /// </summary> public string LatestDigestDeliveryError { get { return this._latestDigestDeliveryError; } set { this._latestDigestDeliveryError = value; } } // Check to see if LatestDigestDeliveryError property is set internal bool IsSetLatestDigestDeliveryError() { return this._latestDigestDeliveryError != null; } /// <summary> /// Gets and sets the property LatestDigestDeliveryTime. /// <para> /// Specifies the date and time that CloudTrail last delivered a digest file to an account's /// Amazon S3 bucket. /// </para> /// </summary> public DateTime LatestDigestDeliveryTime { get { return this._latestDigestDeliveryTime.GetValueOrDefault(); } set { this._latestDigestDeliveryTime = value; } } // Check to see if LatestDigestDeliveryTime property is set internal bool IsSetLatestDigestDeliveryTime() { return this._latestDigestDeliveryTime.HasValue; } /// <summary> /// Gets and sets the property LatestNotificationAttemptSucceeded. /// <para> /// This field is no longer in use. /// </para> /// </summary> public string LatestNotificationAttemptSucceeded { get { return this._latestNotificationAttemptSucceeded; } set { this._latestNotificationAttemptSucceeded = value; } } // Check to see if LatestNotificationAttemptSucceeded property is set internal bool IsSetLatestNotificationAttemptSucceeded() { return this._latestNotificationAttemptSucceeded != null; } /// <summary> /// Gets and sets the property LatestNotificationAttemptTime. /// <para> /// This field is no longer in use. /// </para> /// </summary> public string LatestNotificationAttemptTime { get { return this._latestNotificationAttemptTime; } set { this._latestNotificationAttemptTime = value; } } // Check to see if LatestNotificationAttemptTime property is set internal bool IsSetLatestNotificationAttemptTime() { return this._latestNotificationAttemptTime != null; } /// <summary> /// Gets and sets the property LatestNotificationError. /// <para> /// Displays any Amazon SNS error that CloudTrail encountered when attempting to send /// a notification. For more information about Amazon SNS errors, see the <a href="https://docs.aws.amazon.com/sns/latest/dg/welcome.html">Amazon /// SNS Developer Guide</a>. /// </para> /// </summary> public string LatestNotificationError { get { return this._latestNotificationError; } set { this._latestNotificationError = value; } } // Check to see if LatestNotificationError property is set internal bool IsSetLatestNotificationError() { return this._latestNotificationError != null; } /// <summary> /// Gets and sets the property LatestNotificationTime. /// <para> /// Specifies the date and time of the most recent Amazon SNS notification that CloudTrail /// has written a new log file to an account's Amazon S3 bucket. /// </para> /// </summary> public DateTime LatestNotificationTime { get { return this._latestNotificationTime.GetValueOrDefault(); } set { this._latestNotificationTime = value; } } // Check to see if LatestNotificationTime property is set internal bool IsSetLatestNotificationTime() { return this._latestNotificationTime.HasValue; } /// <summary> /// Gets and sets the property StartLoggingTime. /// <para> /// Specifies the most recent date and time when CloudTrail started recording API calls /// for an Amazon Web Services account. /// </para> /// </summary> public DateTime StartLoggingTime { get { return this._startLoggingTime.GetValueOrDefault(); } set { this._startLoggingTime = value; } } // Check to see if StartLoggingTime property is set internal bool IsSetStartLoggingTime() { return this._startLoggingTime.HasValue; } /// <summary> /// Gets and sets the property StopLoggingTime. /// <para> /// Specifies the most recent date and time when CloudTrail stopped recording API calls /// for an Amazon Web Services account. /// </para> /// </summary> public DateTime StopLoggingTime { get { return this._stopLoggingTime.GetValueOrDefault(); } set { this._stopLoggingTime = value; } } // Check to see if StopLoggingTime property is set internal bool IsSetStopLoggingTime() { return this._stopLoggingTime.HasValue; } /// <summary> /// Gets and sets the property TimeLoggingStarted. /// <para> /// This field is no longer in use. /// </para> /// </summary> public string TimeLoggingStarted { get { return this._timeLoggingStarted; } set { this._timeLoggingStarted = value; } } // Check to see if TimeLoggingStarted property is set internal bool IsSetTimeLoggingStarted() { return this._timeLoggingStarted != null; } /// <summary> /// Gets and sets the property TimeLoggingStopped. /// <para> /// This field is no longer in use. /// </para> /// </summary> public string TimeLoggingStopped { get { return this._timeLoggingStopped; } set { this._timeLoggingStopped = value; } } // Check to see if TimeLoggingStopped property is set internal bool IsSetTimeLoggingStopped() { return this._timeLoggingStopped != null; } } }
390
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Provides information about an import failure. /// </summary> public partial class ImportFailureListItem { private string _errorMessage; private string _errorType; private DateTime? _lastUpdatedTime; private string _location; private ImportFailureStatus _status; /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// Provides the reason the import failed. /// </para> /// </summary> public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// <summary> /// Gets and sets the property ErrorType. /// <para> /// The type of import error. /// </para> /// </summary> public string ErrorType { get { return this._errorType; } set { this._errorType = value; } } // Check to see if ErrorType property is set internal bool IsSetErrorType() { return this._errorType != null; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// <para> /// When the import was last updated. /// </para> /// </summary> public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// <summary> /// Gets and sets the property Location. /// <para> /// The location of the failure in the S3 bucket. /// </para> /// </summary> public string Location { get { return this._location; } set { this._location = value; } } // Check to see if Location property is set internal bool IsSetLocation() { return this._location != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the import. /// </para> /// </summary> public ImportFailureStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
133
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The specified import was not found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ImportNotFoundException : AmazonCloudTrailException { /// <summary> /// Constructs a new ImportNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ImportNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ImportNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ImportNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ImportNotFoundException /// </summary> /// <param name="innerException"></param> public ImportNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ImportNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ImportNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ImportNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ImportNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ImportNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ImportNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Contains information about an import that was returned by a lookup request. /// </summary> public partial class ImportsListItem { private DateTime? _createdTimestamp; private List<string> _destinations = new List<string>(); private string _importId; private ImportStatus _importStatus; private DateTime? _updatedTimestamp; /// <summary> /// Gets and sets the property CreatedTimestamp. /// <para> /// The timestamp of the import's creation. /// </para> /// </summary> public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// <summary> /// Gets and sets the property Destinations. /// <para> /// The ARN of the destination event data store. /// </para> /// </summary> [AWSProperty(Min=1, Max=1)] public List<string> Destinations { get { return this._destinations; } set { this._destinations = value; } } // Check to see if Destinations property is set internal bool IsSetDestinations() { return this._destinations != null && this._destinations.Count > 0; } /// <summary> /// Gets and sets the property ImportId. /// <para> /// The ID of the import. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string ImportId { get { return this._importId; } set { this._importId = value; } } // Check to see if ImportId property is set internal bool IsSetImportId() { return this._importId != null; } /// <summary> /// Gets and sets the property ImportStatus. /// <para> /// The status of the import. /// </para> /// </summary> public ImportStatus ImportStatus { get { return this._importStatus; } set { this._importStatus = value; } } // Check to see if ImportStatus property is set internal bool IsSetImportStatus() { return this._importStatus != null; } /// <summary> /// Gets and sets the property UpdatedTimestamp. /// <para> /// The timestamp of the import's last update. /// </para> /// </summary> public DateTime UpdatedTimestamp { get { return this._updatedTimestamp.GetValueOrDefault(); } set { this._updatedTimestamp = value; } } // Check to see if UpdatedTimestamp property is set internal bool IsSetUpdatedTimestamp() { return this._updatedTimestamp.HasValue; } } }
135
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The import source. /// </summary> public partial class ImportSource { private S3ImportSource _s3; /// <summary> /// Gets and sets the property S3. /// <para> /// The source S3 bucket. /// </para> /// </summary> [AWSProperty(Required=true)] public S3ImportSource S3 { get { return this._s3; } set { this._s3 = value; } } // Check to see if S3 property is set internal bool IsSetS3() { return this._s3 != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Provides statistics for the specified <code>ImportID</code>. CloudTrail does not /// update import statistics in real-time. Returned values for parameters such as <code>EventsCompleted</code> /// may be lower than the actual value, because CloudTrail updates statistics incrementally /// over the course of the import. /// </summary> public partial class ImportStatistics { private long? _eventsCompleted; private long? _failedEntries; private long? _filesCompleted; private long? _prefixesCompleted; private long? _prefixesFound; /// <summary> /// Gets and sets the property EventsCompleted. /// <para> /// The number of trail events imported into the event data store. /// </para> /// </summary> public long EventsCompleted { get { return this._eventsCompleted.GetValueOrDefault(); } set { this._eventsCompleted = value; } } // Check to see if EventsCompleted property is set internal bool IsSetEventsCompleted() { return this._eventsCompleted.HasValue; } /// <summary> /// Gets and sets the property FailedEntries. /// <para> /// The number of failed entries. /// </para> /// </summary> public long FailedEntries { get { return this._failedEntries.GetValueOrDefault(); } set { this._failedEntries = value; } } // Check to see if FailedEntries property is set internal bool IsSetFailedEntries() { return this._failedEntries.HasValue; } /// <summary> /// Gets and sets the property FilesCompleted. /// <para> /// The number of log files that completed import. /// </para> /// </summary> public long FilesCompleted { get { return this._filesCompleted.GetValueOrDefault(); } set { this._filesCompleted = value; } } // Check to see if FilesCompleted property is set internal bool IsSetFilesCompleted() { return this._filesCompleted.HasValue; } /// <summary> /// Gets and sets the property PrefixesCompleted. /// <para> /// The number of S3 prefixes that completed import. /// </para> /// </summary> public long PrefixesCompleted { get { return this._prefixesCompleted.GetValueOrDefault(); } set { this._prefixesCompleted = value; } } // Check to see if PrefixesCompleted property is set internal bool IsSetPrefixesCompleted() { return this._prefixesCompleted.HasValue; } /// <summary> /// Gets and sets the property PrefixesFound. /// <para> /// The number of S3 prefixes found for the import. /// </para> /// </summary> public long PrefixesFound { get { return this._prefixesFound.GetValueOrDefault(); } set { this._prefixesFound = value; } } // Check to see if PrefixesFound property is set internal bool IsSetPrefixesFound() { return this._prefixesFound.HasValue; } } }
136
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The event data store is inactive. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InactiveEventDataStoreException : AmazonCloudTrailException { /// <summary> /// Constructs a new InactiveEventDataStoreException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InactiveEventDataStoreException(string message) : base(message) {} /// <summary> /// Construct instance of InactiveEventDataStoreException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InactiveEventDataStoreException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InactiveEventDataStoreException /// </summary> /// <param name="innerException"></param> public InactiveEventDataStoreException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InactiveEventDataStoreException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InactiveEventDataStoreException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InactiveEventDataStoreException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InactiveEventDataStoreException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InactiveEventDataStoreException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InactiveEventDataStoreException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The specified query cannot be canceled because it is in the <code>FINISHED</code>, /// <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>CANCELLED</code> state. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InactiveQueryException : AmazonCloudTrailException { /// <summary> /// Constructs a new InactiveQueryException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InactiveQueryException(string message) : base(message) {} /// <summary> /// Construct instance of InactiveQueryException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InactiveQueryException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InactiveQueryException /// </summary> /// <param name="innerException"></param> public InactiveQueryException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InactiveQueryException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InactiveQueryException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InactiveQueryException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InactiveQueryException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InactiveQueryException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InactiveQueryException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// A table showing information about the most recent successful and failed attempts to /// ingest events. /// </summary> public partial class IngestionStatus { private string _latestIngestionAttemptEventID; private DateTime? _latestIngestionAttemptTime; private string _latestIngestionErrorCode; private string _latestIngestionSuccessEventID; private DateTime? _latestIngestionSuccessTime; /// <summary> /// Gets and sets the property LatestIngestionAttemptEventID. /// <para> /// The event ID of the most recent attempt to ingest events. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string LatestIngestionAttemptEventID { get { return this._latestIngestionAttemptEventID; } set { this._latestIngestionAttemptEventID = value; } } // Check to see if LatestIngestionAttemptEventID property is set internal bool IsSetLatestIngestionAttemptEventID() { return this._latestIngestionAttemptEventID != null; } /// <summary> /// Gets and sets the property LatestIngestionAttemptTime. /// <para> /// The time stamp of the most recent attempt to ingest events on the channel. /// </para> /// </summary> public DateTime LatestIngestionAttemptTime { get { return this._latestIngestionAttemptTime.GetValueOrDefault(); } set { this._latestIngestionAttemptTime = value; } } // Check to see if LatestIngestionAttemptTime property is set internal bool IsSetLatestIngestionAttemptTime() { return this._latestIngestionAttemptTime.HasValue; } /// <summary> /// Gets and sets the property LatestIngestionErrorCode. /// <para> /// The error code for the most recent failure to ingest events. /// </para> /// </summary> [AWSProperty(Min=4, Max=1000)] public string LatestIngestionErrorCode { get { return this._latestIngestionErrorCode; } set { this._latestIngestionErrorCode = value; } } // Check to see if LatestIngestionErrorCode property is set internal bool IsSetLatestIngestionErrorCode() { return this._latestIngestionErrorCode != null; } /// <summary> /// Gets and sets the property LatestIngestionSuccessEventID. /// <para> /// The event ID of the most recent successful ingestion of events. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string LatestIngestionSuccessEventID { get { return this._latestIngestionSuccessEventID; } set { this._latestIngestionSuccessEventID = value; } } // Check to see if LatestIngestionSuccessEventID property is set internal bool IsSetLatestIngestionSuccessEventID() { return this._latestIngestionSuccessEventID != null; } /// <summary> /// Gets and sets the property LatestIngestionSuccessTime. /// <para> /// The time stamp of the most recent successful ingestion of events for the channel. /// </para> /// </summary> public DateTime LatestIngestionSuccessTime { get { return this._latestIngestionSuccessTime.GetValueOrDefault(); } set { this._latestIngestionSuccessTime = value; } } // Check to see if LatestIngestionSuccessTime property is set internal bool IsSetLatestIngestionSuccessTime() { return this._latestIngestionSuccessTime.HasValue; } } }
137
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// If you run <code>GetInsightSelectors</code> on a trail that does not have Insights /// events enabled, the operation throws the exception <code>InsightNotEnabledException</code>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InsightNotEnabledException : AmazonCloudTrailException { /// <summary> /// Constructs a new InsightNotEnabledException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InsightNotEnabledException(string message) : base(message) {} /// <summary> /// Construct instance of InsightNotEnabledException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InsightNotEnabledException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InsightNotEnabledException /// </summary> /// <param name="innerException"></param> public InsightNotEnabledException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InsightNotEnabledException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsightNotEnabledException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InsightNotEnabledException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsightNotEnabledException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InsightNotEnabledException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InsightNotEnabledException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// A JSON string that contains a list of Insights types that are logged on a trail. /// </summary> public partial class InsightSelector { private InsightType _insightType; /// <summary> /// Gets and sets the property InsightType. /// <para> /// The type of Insights events to log on a trail. <code>ApiCallRateInsight</code> and /// <code>ApiErrorRateInsight</code> are valid Insight types. /// </para> /// /// <para> /// The <code>ApiCallRateInsight</code> Insights type analyzes write-only management API /// calls that are aggregated per minute against a baseline API call volume. /// </para> /// /// <para> /// The <code>ApiErrorRateInsight</code> Insights type analyzes management API calls that /// result in error codes. The error is shown if the API call is unsuccessful. /// </para> /// </summary> public InsightType InsightType { get { return this._insightType; } set { this._insightType = value; } } // Check to see if InsightType property is set internal bool IsSetInsightType() { return this._insightType != null; } } }
68
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the IAM identity that is used to create the organization /// resource lacks one or more required permissions for creating an organization resource /// in a required service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InsufficientDependencyServiceAccessPermissionException : AmazonCloudTrailException { /// <summary> /// Constructs a new InsufficientDependencyServiceAccessPermissionException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InsufficientDependencyServiceAccessPermissionException(string message) : base(message) {} /// <summary> /// Construct instance of InsufficientDependencyServiceAccessPermissionException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InsufficientDependencyServiceAccessPermissionException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InsufficientDependencyServiceAccessPermissionException /// </summary> /// <param name="innerException"></param> public InsufficientDependencyServiceAccessPermissionException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InsufficientDependencyServiceAccessPermissionException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsufficientDependencyServiceAccessPermissionException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InsufficientDependencyServiceAccessPermissionException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsufficientDependencyServiceAccessPermissionException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InsufficientDependencyServiceAccessPermissionException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InsufficientDependencyServiceAccessPermissionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
126
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the policy on the S3 bucket or KMS key does not have /// sufficient permissions for the operation. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InsufficientEncryptionPolicyException : AmazonCloudTrailException { /// <summary> /// Constructs a new InsufficientEncryptionPolicyException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InsufficientEncryptionPolicyException(string message) : base(message) {} /// <summary> /// Construct instance of InsufficientEncryptionPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InsufficientEncryptionPolicyException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InsufficientEncryptionPolicyException /// </summary> /// <param name="innerException"></param> public InsufficientEncryptionPolicyException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InsufficientEncryptionPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsufficientEncryptionPolicyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InsufficientEncryptionPolicyException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsufficientEncryptionPolicyException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InsufficientEncryptionPolicyException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InsufficientEncryptionPolicyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the policy on the S3 bucket is not sufficient. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InsufficientS3BucketPolicyException : AmazonCloudTrailException { /// <summary> /// Constructs a new InsufficientS3BucketPolicyException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InsufficientS3BucketPolicyException(string message) : base(message) {} /// <summary> /// Construct instance of InsufficientS3BucketPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InsufficientS3BucketPolicyException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InsufficientS3BucketPolicyException /// </summary> /// <param name="innerException"></param> public InsufficientS3BucketPolicyException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InsufficientS3BucketPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsufficientS3BucketPolicyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InsufficientS3BucketPolicyException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsufficientS3BucketPolicyException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InsufficientS3BucketPolicyException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InsufficientS3BucketPolicyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the policy on the Amazon SNS topic is not sufficient. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InsufficientSnsTopicPolicyException : AmazonCloudTrailException { /// <summary> /// Constructs a new InsufficientSnsTopicPolicyException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InsufficientSnsTopicPolicyException(string message) : base(message) {} /// <summary> /// Construct instance of InsufficientSnsTopicPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InsufficientSnsTopicPolicyException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InsufficientSnsTopicPolicyException /// </summary> /// <param name="innerException"></param> public InsufficientSnsTopicPolicyException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InsufficientSnsTopicPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsufficientSnsTopicPolicyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InsufficientSnsTopicPolicyException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InsufficientSnsTopicPolicyException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InsufficientSnsTopicPolicyException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InsufficientSnsTopicPolicyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the provided CloudWatch Logs log group is not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidCloudWatchLogsLogGroupArnException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidCloudWatchLogsLogGroupArnException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidCloudWatchLogsLogGroupArnException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidCloudWatchLogsLogGroupArnException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidCloudWatchLogsLogGroupArnException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidCloudWatchLogsLogGroupArnException /// </summary> /// <param name="innerException"></param> public InvalidCloudWatchLogsLogGroupArnException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidCloudWatchLogsLogGroupArnException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidCloudWatchLogsLogGroupArnException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidCloudWatchLogsLogGroupArnException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidCloudWatchLogsLogGroupArnException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidCloudWatchLogsLogGroupArnException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidCloudWatchLogsLogGroupArnException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the provided role is not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidCloudWatchLogsRoleArnException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidCloudWatchLogsRoleArnException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidCloudWatchLogsRoleArnException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidCloudWatchLogsRoleArnException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidCloudWatchLogsRoleArnException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidCloudWatchLogsRoleArnException /// </summary> /// <param name="innerException"></param> public InvalidCloudWatchLogsRoleArnException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidCloudWatchLogsRoleArnException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidCloudWatchLogsRoleArnException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidCloudWatchLogsRoleArnException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidCloudWatchLogsRoleArnException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidCloudWatchLogsRoleArnException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidCloudWatchLogsRoleArnException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// A date range for the query was specified that is not valid. Be sure that the start /// time is chronologically before the end time. For more information about writing a /// query, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html">Create /// or edit a query</a> in the <i>CloudTrail User Guide</i>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidDateRangeException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidDateRangeException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidDateRangeException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidDateRangeException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidDateRangeException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidDateRangeException /// </summary> /// <param name="innerException"></param> public InvalidDateRangeException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidDateRangeException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidDateRangeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidDateRangeException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidDateRangeException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidDateRangeException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidDateRangeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
127
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Occurs if an event category that is not valid is specified as a value of <code>EventCategory</code>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidEventCategoryException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidEventCategoryException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidEventCategoryException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidEventCategoryException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidEventCategoryException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidEventCategoryException /// </summary> /// <param name="innerException"></param> public InvalidEventCategoryException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidEventCategoryException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidEventCategoryException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidEventCategoryException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidEventCategoryException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidEventCategoryException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidEventCategoryException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when event categories of specified event data stores are /// not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidEventDataStoreCategoryException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidEventDataStoreCategoryException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidEventDataStoreCategoryException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidEventDataStoreCategoryException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidEventDataStoreCategoryException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidEventDataStoreCategoryException /// </summary> /// <param name="innerException"></param> public InvalidEventDataStoreCategoryException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidEventDataStoreCategoryException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidEventDataStoreCategoryException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidEventDataStoreCategoryException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidEventDataStoreCategoryException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidEventDataStoreCategoryException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidEventDataStoreCategoryException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The event data store is not in a status that supports the operation. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidEventDataStoreStatusException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidEventDataStoreStatusException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidEventDataStoreStatusException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidEventDataStoreStatusException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidEventDataStoreStatusException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidEventDataStoreStatusException /// </summary> /// <param name="innerException"></param> public InvalidEventDataStoreStatusException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidEventDataStoreStatusException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidEventDataStoreStatusException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidEventDataStoreStatusException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidEventDataStoreStatusException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidEventDataStoreStatusException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidEventDataStoreStatusException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the <code>PutEventSelectors</code> operation is called /// with a number of event selectors, advanced event selectors, or data resources that /// is not valid. The combination of event selectors or advanced event selectors and data /// resources is not valid. A trail can have up to 5 event selectors. If a trail uses /// advanced event selectors, a maximum of 500 total values for all conditions in all /// advanced event selectors is allowed. A trail is limited to 250 data resources. These /// data resources can be distributed across event selectors, but the overall total cannot /// exceed 250. /// /// /// <para> /// You can: /// </para> /// <ul> <li> /// <para> /// Specify a valid number of event selectors (1 to 5) for a trail. /// </para> /// </li> <li> /// <para> /// Specify a valid number of data resources (1 to 250) for an event selector. The limit /// of number of resources on an individual event selector is configurable up to 250. /// However, this upper limit is allowed only if the total number of data resources does /// not exceed 250 across all event selectors for a trail. /// </para> /// </li> <li> /// <para> /// Specify up to 500 values for all conditions in all advanced event selectors for a /// trail. /// </para> /// </li> <li> /// <para> /// Specify a valid value for a parameter. For example, specifying the <code>ReadWriteType</code> /// parameter with a value of <code>read-only</code> is not valid. /// </para> /// </li> </ul> /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidEventSelectorsException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidEventSelectorsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidEventSelectorsException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidEventSelectorsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidEventSelectorsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidEventSelectorsException /// </summary> /// <param name="innerException"></param> public InvalidEventSelectorsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidEventSelectorsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidEventSelectorsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidEventSelectorsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidEventSelectorsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidEventSelectorsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidEventSelectorsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
158
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when an operation is called on a trail from a Region other /// than the Region in which the trail was created. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidHomeRegionException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidHomeRegionException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidHomeRegionException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidHomeRegionException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidHomeRegionException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidHomeRegionException /// </summary> /// <param name="innerException"></param> public InvalidHomeRegionException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidHomeRegionException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidHomeRegionException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidHomeRegionException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidHomeRegionException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidHomeRegionException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidHomeRegionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the provided source S3 bucket is not valid for import. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidImportSourceException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidImportSourceException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidImportSourceException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidImportSourceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidImportSourceException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidImportSourceException /// </summary> /// <param name="innerException"></param> public InvalidImportSourceException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidImportSourceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidImportSourceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidImportSourceException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidImportSourceException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidImportSourceException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidImportSourceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// The formatting or syntax of the <code>InsightSelectors</code> JSON statement in your /// <code>PutInsightSelectors</code> or <code>GetInsightSelectors</code> request is not /// valid, or the specified insight type in the <code>InsightSelectors</code> statement /// is not a valid insight type. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidInsightSelectorsException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidInsightSelectorsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidInsightSelectorsException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidInsightSelectorsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidInsightSelectorsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidInsightSelectorsException /// </summary> /// <param name="innerException"></param> public InvalidInsightSelectorsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidInsightSelectorsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidInsightSelectorsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidInsightSelectorsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidInsightSelectorsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidInsightSelectorsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidInsightSelectorsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
127
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// This exception is thrown when the KMS key ARN is not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidKmsKeyIdException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidKmsKeyIdException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidKmsKeyIdException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidKmsKeyIdException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidKmsKeyIdException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidKmsKeyIdException /// </summary> /// <param name="innerException"></param> public InvalidKmsKeyIdException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidKmsKeyIdException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidKmsKeyIdException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidKmsKeyIdException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidKmsKeyIdException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidKmsKeyIdException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidKmsKeyIdException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// <summary> /// Occurs when a lookup attribute is specified that is not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidLookupAttributesException : AmazonCloudTrailException { /// <summary> /// Constructs a new InvalidLookupAttributesException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidLookupAttributesException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidLookupAttributesException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidLookupAttributesException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidLookupAttributesException /// </summary> /// <param name="innerException"></param> public InvalidLookupAttributesException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidLookupAttributesException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidLookupAttributesException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidLookupAttributesException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidLookupAttributesException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidLookupAttributesException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidLookupAttributesException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124