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 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 if the limit specified is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidMaxResultsException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidMaxResultsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidMaxResultsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidMaxResultsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidMaxResultsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidMaxResultsException
/// </summary>
/// <param name="innerException"></param>
public InvalidMaxResultsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidMaxResultsException
/// </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 InvalidMaxResultsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidMaxResultsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidMaxResultsException(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 InvalidMaxResultsException 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 InvalidMaxResultsException(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 token that is not valid, or a token that was previously used in a request with different
/// parameters. This exception is thrown if the token is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidNextTokenException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidNextTokenException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidNextTokenException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidNextTokenException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="innerException"></param>
public InvalidNextTokenException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </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 InvalidNextTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidNextTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidNextTokenException(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 InvalidNextTokenException 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 InvalidNextTokenException(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 combination of parameters provided is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidParameterCombinationException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidParameterCombinationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidParameterCombinationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidParameterCombinationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidParameterCombinationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidParameterCombinationException
/// </summary>
/// <param name="innerException"></param>
public InvalidParameterCombinationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidParameterCombinationException
/// </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 InvalidParameterCombinationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidParameterCombinationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidParameterCombinationException(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 InvalidParameterCombinationException 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 InvalidParameterCombinationException(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 request includes a parameter that is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidParameterException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidParameterException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidParameterException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidParameterException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidParameterException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidParameterException
/// </summary>
/// <param name="innerException"></param>
public InvalidParameterException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidParameterException
/// </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 InvalidParameterException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidParameterException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidParameterException(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 InvalidParameterException 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 InvalidParameterException(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 query that was submitted has validation errors, or uses incorrect syntax or unsupported
/// keywords. 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 InvalidQueryStatementException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidQueryStatementException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidQueryStatementException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidQueryStatementException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidQueryStatementException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidQueryStatementException
/// </summary>
/// <param name="innerException"></param>
public InvalidQueryStatementException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidQueryStatementException
/// </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 InvalidQueryStatementException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidQueryStatementException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidQueryStatementException(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 InvalidQueryStatementException 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 InvalidQueryStatementException(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>
/// The query status is not valid for the operation.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidQueryStatusException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidQueryStatusException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidQueryStatusException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidQueryStatusException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidQueryStatusException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidQueryStatusException
/// </summary>
/// <param name="innerException"></param>
public InvalidQueryStatusException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidQueryStatusException
/// </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 InvalidQueryStatusException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidQueryStatusException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidQueryStatusException(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 InvalidQueryStatusException 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 InvalidQueryStatusException(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 S3 bucket name is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidS3BucketNameException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidS3BucketNameException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidS3BucketNameException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidS3BucketNameException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidS3BucketNameException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidS3BucketNameException
/// </summary>
/// <param name="innerException"></param>
public InvalidS3BucketNameException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidS3BucketNameException
/// </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 InvalidS3BucketNameException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidS3BucketNameException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidS3BucketNameException(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 InvalidS3BucketNameException 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 InvalidS3BucketNameException(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 S3 prefix is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidS3PrefixException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidS3PrefixException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidS3PrefixException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidS3PrefixException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidS3PrefixException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidS3PrefixException
/// </summary>
/// <param name="innerException"></param>
public InvalidS3PrefixException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidS3PrefixException
/// </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 InvalidS3PrefixException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidS3PrefixException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidS3PrefixException(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 InvalidS3PrefixException 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 InvalidS3PrefixException(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 SNS topic name is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidSnsTopicNameException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidSnsTopicNameException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidSnsTopicNameException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidSnsTopicNameException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidSnsTopicNameException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidSnsTopicNameException
/// </summary>
/// <param name="innerException"></param>
public InvalidSnsTopicNameException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidSnsTopicNameException
/// </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 InvalidSnsTopicNameException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidSnsTopicNameException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidSnsTopicNameException(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 InvalidSnsTopicNameException 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 InvalidSnsTopicNameException(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>Source</code> is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidSourceException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidSourceException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidSourceException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidSourceException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidSourceException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidSourceException
/// </summary>
/// <param name="innerException"></param>
public InvalidSourceException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidSourceException
/// </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 InvalidSourceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidSourceException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidSourceException(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 InvalidSourceException 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 InvalidSourceException(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 tag key or values are not valid. It can
/// also occur if there are duplicate tags or too many tags on the resource.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidTagParameterException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidTagParameterException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidTagParameterException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidTagParameterException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidTagParameterException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidTagParameterException
/// </summary>
/// <param name="innerException"></param>
public InvalidTagParameterException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidTagParameterException
/// </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 InvalidTagParameterException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidTagParameterException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidTagParameterException(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 InvalidTagParameterException 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 InvalidTagParameterException(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>
/// Occurs if the timestamp values are not valid. Either the start time occurs after the
/// end time, or the time range is outside the range of possible values.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidTimeRangeException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidTimeRangeException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidTimeRangeException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidTimeRangeException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidTimeRangeException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidTimeRangeException
/// </summary>
/// <param name="innerException"></param>
public InvalidTimeRangeException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidTimeRangeException
/// </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 InvalidTimeRangeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidTimeRangeException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidTimeRangeException(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 InvalidTimeRangeException 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 InvalidTimeRangeException(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>
/// Reserved for future use.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidTokenException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidTokenException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidTokenException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidTokenException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidTokenException
/// </summary>
/// <param name="innerException"></param>
public InvalidTokenException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidTokenException
/// </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 InvalidTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidTokenException(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 InvalidTokenException 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 InvalidTokenException(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 trail name is not valid. Trail names must
/// meet the following requirements:
///
/// <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>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidTrailNameException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new InvalidTrailNameException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidTrailNameException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidTrailNameException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidTrailNameException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidTrailNameException
/// </summary>
/// <param name="innerException"></param>
public InvalidTrailNameException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidTrailNameException
/// </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 InvalidTrailNameException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidTrailNameException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidTrailNameException(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 InvalidTrailNameException 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 InvalidTrailNameException(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
}
} | 149 |
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 there is an issue with the specified KMS key and the
/// trail or event data store can't be updated.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class KmsException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new KmsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public KmsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of KmsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public KmsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of KmsException
/// </summary>
/// <param name="innerException"></param>
public KmsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of KmsException
/// </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 KmsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of KmsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public KmsException(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 KmsException 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 KmsException(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 no longer in use.
/// </summary>
[Obsolete("This exception is deprecated.")]
#if !NETSTANDARD
[Serializable]
#endif
public partial class KmsKeyDisabledException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new KmsKeyDisabledException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public KmsKeyDisabledException(string message)
: base(message) {}
/// <summary>
/// Construct instance of KmsKeyDisabledException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public KmsKeyDisabledException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of KmsKeyDisabledException
/// </summary>
/// <param name="innerException"></param>
public KmsKeyDisabledException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of KmsKeyDisabledException
/// </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 KmsKeyDisabledException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of KmsKeyDisabledException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public KmsKeyDisabledException(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 KmsKeyDisabledException 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 KmsKeyDisabledException(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 KMS key does not exist, when the S3 bucket and the
/// KMS key are not in the same Region, or when the KMS key associated with the Amazon
/// SNS topic either does not exist or is not in the same Region.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class KmsKeyNotFoundException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new KmsKeyNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public KmsKeyNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of KmsKeyNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public KmsKeyNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of KmsKeyNotFoundException
/// </summary>
/// <param name="innerException"></param>
public KmsKeyNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of KmsKeyNotFoundException
/// </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 KmsKeyNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of KmsKeyNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public KmsKeyNotFoundException(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 KmsKeyNotFoundException 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 KmsKeyNotFoundException(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>
/// Container for the parameters to the ListChannels operation.
/// Lists the channels in the current account, and their source names.
/// </summary>
public partial class ListChannelsRequest : AmazonCloudTrailRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of CloudTrail channels to display on a single page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use to get the next page of results after a previous API call. This token
/// must be passed in with the same parameters that were specified in the original call.
/// For example, if the original call specified an AttributeKey of 'Username' with a value
/// of 'root', the call with NextToken should include those same parameters.
/// </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;
}
}
} | 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>
/// This is the response object from the ListChannels operation.
/// </summary>
public partial class ListChannelsResponse : AmazonWebServiceResponse
{
private List<Channel> _channels = new List<Channel>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Channels.
/// <para>
/// The list of channels in the account.
/// </para>
/// </summary>
public List<Channel> Channels
{
get { return this._channels; }
set { this._channels = value; }
}
// Check to see if Channels property is set
internal bool IsSetChannels()
{
return this._channels != null && this._channels.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use to get the next page of results after a previous API call.
/// </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;
}
}
} | 77 |
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 ListEventDataStores operation.
/// Returns information about all event data stores in the account, in the current Region.
/// </summary>
public partial class ListEventDataStoresRequest : AmazonCloudTrailRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of event data stores to display on a single page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use to get the next page of event data store 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;
}
}
} | 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 is the response object from the ListEventDataStores operation.
/// </summary>
public partial class ListEventDataStoresResponse : AmazonWebServiceResponse
{
private List<EventDataStore> _eventDataStores = new List<EventDataStore>();
private string _nextToken;
/// <summary>
/// Gets and sets the property EventDataStores.
/// <para>
/// Contains information about event data stores in the account, in the current Region.
/// </para>
/// </summary>
public List<EventDataStore> EventDataStores
{
get { return this._eventDataStores; }
set { this._eventDataStores = value; }
}
// Check to see if EventDataStores property is set
internal bool IsSetEventDataStores()
{
return this._eventDataStores != null && this._eventDataStores.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use to get the next page of 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;
}
}
} | 77 |
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 ListImportFailures operation.
/// Returns a list of failures for the specified import.
/// </summary>
public partial class ListImportFailuresRequest : AmazonCloudTrailRequest
{
private string _importId;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ImportId.
/// <para>
/// The ID of 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;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of failures to display on a single page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use to get the next page of import failures.
/// </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;
}
}
} | 99 |
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 ListImportFailures operation.
/// </summary>
public partial class ListImportFailuresResponse : AmazonWebServiceResponse
{
private List<ImportFailureListItem> _failures = new List<ImportFailureListItem>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Failures.
/// <para>
/// Contains information about the import failures.
/// </para>
/// </summary>
public List<ImportFailureListItem> Failures
{
get { return this._failures; }
set { this._failures = value; }
}
// Check to see if Failures property is set
internal bool IsSetFailures()
{
return this._failures != null && this._failures.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use to get the next page of 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;
}
}
} | 77 |
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 ListImports operation.
/// Returns information on all imports, or a select set of imports by <code>ImportStatus</code>
/// or <code>Destination</code>.
/// </summary>
public partial class ListImportsRequest : AmazonCloudTrailRequest
{
private string _destination;
private ImportStatus _importStatus;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property Destination.
/// <para>
/// The ARN of the destination event data store.
/// </para>
/// </summary>
[AWSProperty(Min=3, Max=256)]
public string Destination
{
get { return this._destination; }
set { this._destination = value; }
}
// Check to see if Destination property is set
internal bool IsSetDestination()
{
return this._destination != 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 MaxResults.
/// <para>
/// The maximum number of imports to display on a single page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use to get the next page of import 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;
}
}
} | 119 |
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 ListImports operation.
/// </summary>
public partial class ListImportsResponse : AmazonWebServiceResponse
{
private List<ImportsListItem> _imports = new List<ImportsListItem>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Imports.
/// <para>
/// The list of returned imports.
/// </para>
/// </summary>
public List<ImportsListItem> Imports
{
get { return this._imports; }
set { this._imports = value; }
}
// Check to see if Imports property is set
internal bool IsSetImports()
{
return this._imports != null && this._imports.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use to get the next page of import 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;
}
}
} | 77 |
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 ListPublicKeys operation.
/// Returns all public keys whose private keys were used to sign the digest files within
/// the specified time range. The public key is needed to validate digest files that were
/// signed with its corresponding private key.
///
/// <note>
/// <para>
/// CloudTrail uses different private and public key pairs per Region. Each digest file
/// is signed with a private key unique to its Region. When you validate a digest file
/// from a specific Region, you must look in the same Region for its corresponding public
/// key.
/// </para>
/// </note>
/// </summary>
public partial class ListPublicKeysRequest : AmazonCloudTrailRequest
{
private DateTime? _endTime;
private string _nextToken;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// Optionally specifies, in UTC, the end of the time range to look up public keys for
/// CloudTrail digest files. If not specified, the current time is used.
/// </para>
/// </summary>
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Reserved for future use.
/// </para>
/// </summary>
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 StartTime.
/// <para>
/// Optionally specifies, in UTC, the start of the time range to look up public keys for
/// CloudTrail digest files. If not specified, the current time is used, and the current
/// public key is returned.
/// </para>
/// </summary>
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
}
} | 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>
/// Returns the objects or data listed below if successful. Otherwise, returns an error.
/// </summary>
public partial class ListPublicKeysResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<PublicKey> _publicKeyList = new List<PublicKey>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Reserved for future use.
/// </para>
/// </summary>
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 PublicKeyList.
/// <para>
/// Contains an array of PublicKey objects.
/// </para>
/// <note>
/// <para>
/// The returned public keys may have validity time ranges that overlap.
/// </para>
/// </note>
/// </summary>
public List<PublicKey> PublicKeyList
{
get { return this._publicKeyList; }
set { this._publicKeyList = value; }
}
// Check to see if PublicKeyList property is set
internal bool IsSetPublicKeyList()
{
return this._publicKeyList != null && this._publicKeyList.Count > 0;
}
}
} | 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>
/// Container for the parameters to the ListQueries operation.
/// Returns a list of queries and query statuses for the past seven days. You must specify
/// an ARN value for <code>EventDataStore</code>. Optionally, to shorten the list of results,
/// you can specify a time range, formatted as timestamps, by adding <code>StartTime</code>
/// and <code>EndTime</code> parameters, and a <code>QueryStatus</code> value. Valid 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>.
/// </summary>
public partial class ListQueriesRequest : AmazonCloudTrailRequest
{
private DateTime? _endTime;
private string _eventDataStore;
private int? _maxResults;
private string _nextToken;
private QueryStatus _queryStatus;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// Use with <code>StartTime</code> to bound a <code>ListQueries</code> request, and limit
/// its results to only those queries run within a specified time period.
/// </para>
/// </summary>
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
/// <summary>
/// Gets and sets the property EventDataStore.
/// <para>
/// The ARN (or the ID suffix of the ARN) of an event data store on which queries were
/// run.
/// </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;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of queries to show on a page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use to get the next page of 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 QueryStatus.
/// <para>
/// The status of queries that you want to return in results. Valid 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 StartTime.
/// <para>
/// Use with <code>EndTime</code> to bound a <code>ListQueries</code> request, and limit
/// its results to only those queries run within a specified time period.
/// </para>
/// </summary>
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
}
} | 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>
/// This is the response object from the ListQueries operation.
/// </summary>
public partial class ListQueriesResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<Query> _queries = new List<Query>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use to get the next page of 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 Queries.
/// <para>
/// Lists matching query results, and shows query ID, status, and creation time of each
/// query.
/// </para>
/// </summary>
public List<Query> Queries
{
get { return this._queries; }
set { this._queries = value; }
}
// Check to see if Queries property is set
internal bool IsSetQueries()
{
return this._queries != null && this._queries.Count > 0;
}
}
} | 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 ListTags operation.
/// Lists the tags for the specified trails, event data stores, or channels in the current
/// Region.
/// </summary>
public partial class ListTagsRequest : AmazonCloudTrailRequest
{
private string _nextToken;
private List<string> _resourceIdList = new List<string>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Reserved for future use.
/// </para>
/// </summary>
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 ResourceIdList.
/// <para>
/// Specifies a list of trail, event data store, or channel ARNs whose tags will be listed.
/// The list has a limit of 20 ARNs.
/// </para>
///
/// <para>
/// Example trail ARN format: <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
///
/// </para>
///
/// <para>
/// Example event data store ARN format: <code>arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
///
/// </para>
///
/// <para>
/// Example channel ARN format: <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
///
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> ResourceIdList
{
get { return this._resourceIdList; }
set { this._resourceIdList = value; }
}
// Check to see if ResourceIdList property is set
internal bool IsSetResourceIdList()
{
return this._resourceIdList != null && this._resourceIdList.Count > 0;
}
}
} | 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>
/// Returns the objects or data listed below if successful. Otherwise, returns an error.
/// </summary>
public partial class ListTagsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ResourceTag> _resourceTagList = new List<ResourceTag>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Reserved for future use.
/// </para>
/// </summary>
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 ResourceTagList.
/// <para>
/// A list of resource tags.
/// </para>
/// </summary>
public List<ResourceTag> ResourceTagList
{
get { return this._resourceTagList; }
set { this._resourceTagList = value; }
}
// Check to see if ResourceTagList property is set
internal bool IsSetResourceTagList()
{
return this._resourceTagList != null && this._resourceTagList.Count > 0;
}
}
} | 76 |
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 ListTrails operation.
/// Lists trails that are in the current account.
/// </summary>
public partial class ListTrailsRequest : AmazonCloudTrailRequest
{
private string _nextToken;
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use to get the next page of results after a previous API call. This token
/// must be passed in with the same parameters that were specified in the original call.
/// For example, if the original call specified an AttributeKey of 'Username' with a value
/// of 'root', the call with NextToken should include those same parameters.
/// </para>
/// </summary>
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;
}
}
} | 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 ListTrails operation.
/// </summary>
public partial class ListTrailsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<TrailInfo> _trails = new List<TrailInfo>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use to get the next page of results after a previous API call. If the
/// token does not appear, there are no more results to return. The token must be passed
/// in with the same parameters as the previous call. For example, if the original call
/// specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken
/// should include those same parameters.
/// </para>
/// </summary>
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 Trails.
/// <para>
/// Returns the name, ARN, and home Region of trails in the current account.
/// </para>
/// </summary>
public List<TrailInfo> Trails
{
get { return this._trails; }
set { this._trails = value; }
}
// Check to see if Trails property is set
internal bool IsSetTrails()
{
return this._trails != null && this._trails.Count > 0;
}
}
} | 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>
/// Specifies an attribute and value that filter the events returned.
/// </summary>
public partial class LookupAttribute
{
private LookupAttributeKey _attributeKey;
private string _attributeValue;
/// <summary>
/// Gets and sets the property AttributeKey.
/// <para>
/// Specifies an attribute on which to filter the events returned.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public LookupAttributeKey AttributeKey
{
get { return this._attributeKey; }
set { this._attributeKey = value; }
}
// Check to see if AttributeKey property is set
internal bool IsSetAttributeKey()
{
return this._attributeKey != null;
}
/// <summary>
/// Gets and sets the property AttributeValue.
/// <para>
/// Specifies a value for the specified AttributeKey.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=2000)]
public string AttributeValue
{
get { return this._attributeValue; }
set { this._attributeValue = value; }
}
// Check to see if AttributeValue property is set
internal bool IsSetAttributeValue()
{
return this._attributeValue != 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 LookupEvents operation.
/// Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management
/// events</a> or <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events">CloudTrail
/// Insights events</a> that are captured by CloudTrail. You can look up events that occurred
/// in a Region within the last 90 days. Lookup supports the following attributes for
/// management events:
///
/// <ul> <li>
/// <para>
/// Amazon Web Services access key
/// </para>
/// </li> <li>
/// <para>
/// Event ID
/// </para>
/// </li> <li>
/// <para>
/// Event name
/// </para>
/// </li> <li>
/// <para>
/// Event source
/// </para>
/// </li> <li>
/// <para>
/// Read only
/// </para>
/// </li> <li>
/// <para>
/// Resource name
/// </para>
/// </li> <li>
/// <para>
/// Resource type
/// </para>
/// </li> <li>
/// <para>
/// User name
/// </para>
/// </li> </ul>
/// <para>
/// Lookup supports the following attributes for Insights events:
/// </para>
/// <ul> <li>
/// <para>
/// Event ID
/// </para>
/// </li> <li>
/// <para>
/// Event name
/// </para>
/// </li> <li>
/// <para>
/// Event source
/// </para>
/// </li> </ul>
/// <para>
/// All attributes are optional. The default number of results returned is 50, with a
/// maximum of 50 possible. The response includes a token that you can use to get the
/// next page of results.
/// </para>
/// <important>
/// <para>
/// The rate of lookup requests is limited to two per second, per account, per Region.
/// If this limit is exceeded, a throttling error occurs.
/// </para>
/// </important>
/// </summary>
public partial class LookupEventsRequest : AmazonCloudTrailRequest
{
private DateTime? _endTime;
private EventCategory _eventCategory;
private List<LookupAttribute> _lookupAttributes = new List<LookupAttribute>();
private int? _maxResults;
private string _nextToken;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// Specifies that only events that occur before or at the specified time are returned.
/// If the specified end time is before the specified start time, an error is returned.
/// </para>
/// </summary>
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
/// <summary>
/// Gets and sets the property EventCategory.
/// <para>
/// Specifies the event category. If you do not specify an event category, events of the
/// category are not returned in the response. For example, if you do not specify <code>insight</code>
/// as the value of <code>EventCategory</code>, no Insights events are returned.
/// </para>
/// </summary>
public EventCategory EventCategory
{
get { return this._eventCategory; }
set { this._eventCategory = value; }
}
// Check to see if EventCategory property is set
internal bool IsSetEventCategory()
{
return this._eventCategory != null;
}
/// <summary>
/// Gets and sets the property LookupAttributes.
/// <para>
/// Contains a list of lookup attributes. Currently the list can contain only one item.
/// </para>
/// </summary>
public List<LookupAttribute> LookupAttributes
{
get { return this._lookupAttributes; }
set { this._lookupAttributes = value; }
}
// Check to see if LookupAttributes property is set
internal bool IsSetLookupAttributes()
{
return this._lookupAttributes != null && this._lookupAttributes.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The number of events to return. Possible values are 1 through 50. The default is 50.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use to get the next page of results after a previous API call. This token
/// must be passed in with the same parameters that were specified in the original call.
/// For example, if the original call specified an AttributeKey of 'Username' with a value
/// of 'root', the call with NextToken should include those same parameters.
/// </para>
/// </summary>
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 StartTime.
/// <para>
/// Specifies that only events that occur after or at the specified time are returned.
/// If the specified start time is after the specified end time, an error is returned.
/// </para>
/// </summary>
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
}
} | 226 |
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 a response to a LookupEvents action.
/// </summary>
public partial class LookupEventsResponse : AmazonWebServiceResponse
{
private List<Event> _events = new List<Event>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Events.
/// <para>
/// A list of events returned based on the lookup attributes specified and the CloudTrail
/// event. The events list is sorted by time. The most recent event is listed first.
/// </para>
/// </summary>
public List<Event> Events
{
get { return this._events; }
set { this._events = value; }
}
// Check to see if Events property is set
internal bool IsSetEvents()
{
return this._events != null && this._events.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use to get the next page of results after a previous API call. If the
/// token does not appear, there are no more results to return. The token must be passed
/// in with the same parameters as the previous call. For example, if the original call
/// specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken
/// should include those same parameters.
/// </para>
/// </summary>
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;
}
}
} | 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>
/// You are already running the maximum number of concurrent queries. Wait a minute for
/// some queries to finish, and then run the query again.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class MaxConcurrentQueriesException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new MaxConcurrentQueriesException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public MaxConcurrentQueriesException(string message)
: base(message) {}
/// <summary>
/// Construct instance of MaxConcurrentQueriesException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public MaxConcurrentQueriesException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of MaxConcurrentQueriesException
/// </summary>
/// <param name="innerException"></param>
public MaxConcurrentQueriesException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of MaxConcurrentQueriesException
/// </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 MaxConcurrentQueriesException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of MaxConcurrentQueriesException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public MaxConcurrentQueriesException(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 MaxConcurrentQueriesException 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 MaxConcurrentQueriesException(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 trails is reached.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class MaximumNumberOfTrailsExceededException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new MaximumNumberOfTrailsExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public MaximumNumberOfTrailsExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of MaximumNumberOfTrailsExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public MaximumNumberOfTrailsExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of MaximumNumberOfTrailsExceededException
/// </summary>
/// <param name="innerException"></param>
public MaximumNumberOfTrailsExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of MaximumNumberOfTrailsExceededException
/// </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 MaximumNumberOfTrailsExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of MaximumNumberOfTrailsExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public MaximumNumberOfTrailsExceededException(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 MaximumNumberOfTrailsExceededException 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 MaximumNumberOfTrailsExceededException(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 management account does not have a service-linked
/// role.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class NoManagementAccountSLRExistsException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new NoManagementAccountSLRExistsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public NoManagementAccountSLRExistsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of NoManagementAccountSLRExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public NoManagementAccountSLRExistsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of NoManagementAccountSLRExistsException
/// </summary>
/// <param name="innerException"></param>
public NoManagementAccountSLRExistsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of NoManagementAccountSLRExistsException
/// </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 NoManagementAccountSLRExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of NoManagementAccountSLRExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public NoManagementAccountSLRExistsException(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 NoManagementAccountSLRExistsException 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 NoManagementAccountSLRExistsException(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 making the request is not the organization's
/// management account.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class NotOrganizationManagementAccountException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new NotOrganizationManagementAccountException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public NotOrganizationManagementAccountException(string message)
: base(message) {}
/// <summary>
/// Construct instance of NotOrganizationManagementAccountException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public NotOrganizationManagementAccountException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of NotOrganizationManagementAccountException
/// </summary>
/// <param name="innerException"></param>
public NotOrganizationManagementAccountException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of NotOrganizationManagementAccountException
/// </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 NotOrganizationManagementAccountException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of NotOrganizationManagementAccountException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public NotOrganizationManagementAccountException(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 NotOrganizationManagementAccountException 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 NotOrganizationManagementAccountException(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 Amazon Web Services account making the request to
/// create or update an organization trail or event data store is not the management account
/// for an organization in Organizations. For more information, see <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> or <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html">Create
/// an event data store</a>.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class NotOrganizationMasterAccountException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new NotOrganizationMasterAccountException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public NotOrganizationMasterAccountException(string message)
: base(message) {}
/// <summary>
/// Construct instance of NotOrganizationMasterAccountException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public NotOrganizationMasterAccountException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of NotOrganizationMasterAccountException
/// </summary>
/// <param name="innerException"></param>
public NotOrganizationMasterAccountException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of NotOrganizationMasterAccountException
/// </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 NotOrganizationMasterAccountException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of NotOrganizationMasterAccountException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public NotOrganizationMasterAccountException(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 NotOrganizationMasterAccountException 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 NotOrganizationMasterAccountException(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
}
} | 128 |
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 requested operation is not permitted.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class OperationNotPermittedException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new OperationNotPermittedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public OperationNotPermittedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of OperationNotPermittedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public OperationNotPermittedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of OperationNotPermittedException
/// </summary>
/// <param name="innerException"></param>
public OperationNotPermittedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of OperationNotPermittedException
/// </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 OperationNotPermittedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of OperationNotPermittedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public OperationNotPermittedException(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 OperationNotPermittedException 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 OperationNotPermittedException(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 Organizations is not configured to support all features.
/// All features must be enabled in Organizations to support creating an organization
/// trail or event data store.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class OrganizationNotInAllFeaturesModeException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new OrganizationNotInAllFeaturesModeException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public OrganizationNotInAllFeaturesModeException(string message)
: base(message) {}
/// <summary>
/// Construct instance of OrganizationNotInAllFeaturesModeException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public OrganizationNotInAllFeaturesModeException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of OrganizationNotInAllFeaturesModeException
/// </summary>
/// <param name="innerException"></param>
public OrganizationNotInAllFeaturesModeException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of OrganizationNotInAllFeaturesModeException
/// </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 OrganizationNotInAllFeaturesModeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of OrganizationNotInAllFeaturesModeException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public OrganizationNotInAllFeaturesModeException(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 OrganizationNotInAllFeaturesModeException 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 OrganizationNotInAllFeaturesModeException(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 request is made from an Amazon Web Services account
/// that is not a member of an organization. To make this request, sign in using the credentials
/// of an account that belongs to an organization.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class OrganizationsNotInUseException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new OrganizationsNotInUseException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public OrganizationsNotInUseException(string message)
: base(message) {}
/// <summary>
/// Construct instance of OrganizationsNotInUseException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public OrganizationsNotInUseException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of OrganizationsNotInUseException
/// </summary>
/// <param name="innerException"></param>
public OrganizationsNotInUseException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of OrganizationsNotInUseException
/// </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 OrganizationsNotInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of OrganizationsNotInUseException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public OrganizationsNotInUseException(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 OrganizationsNotInUseException 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 OrganizationsNotInUseException(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>
/// Contains information about a returned public key.
/// </summary>
public partial class PublicKey
{
private string _fingerprint;
private DateTime? _validityEndTime;
private DateTime? _validityStartTime;
private MemoryStream _value;
/// <summary>
/// Gets and sets the property Fingerprint.
/// <para>
/// The fingerprint of the public key.
/// </para>
/// </summary>
public string Fingerprint
{
get { return this._fingerprint; }
set { this._fingerprint = value; }
}
// Check to see if Fingerprint property is set
internal bool IsSetFingerprint()
{
return this._fingerprint != null;
}
/// <summary>
/// Gets and sets the property ValidityEndTime.
/// <para>
/// The ending time of validity of the public key.
/// </para>
/// </summary>
public DateTime ValidityEndTime
{
get { return this._validityEndTime.GetValueOrDefault(); }
set { this._validityEndTime = value; }
}
// Check to see if ValidityEndTime property is set
internal bool IsSetValidityEndTime()
{
return this._validityEndTime.HasValue;
}
/// <summary>
/// Gets and sets the property ValidityStartTime.
/// <para>
/// The starting time of validity of the public key.
/// </para>
/// </summary>
public DateTime ValidityStartTime
{
get { return this._validityStartTime.GetValueOrDefault(); }
set { this._validityStartTime = value; }
}
// Check to see if ValidityStartTime property is set
internal bool IsSetValidityStartTime()
{
return this._validityStartTime.HasValue;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The DER encoded public key value in PKCS#1 format.
/// </para>
/// </summary>
public MemoryStream Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 114 |
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 PutEventSelectors operation.
/// Configures an event selector or advanced event selectors for your trail. Use event
/// selectors or advanced event selectors to specify management and data event settings
/// for your trail. If you want your trail to log Insights events, be sure the event selector
/// enables logging of the Insights event types you want configured for your trail. For
/// more information about logging Insights events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">Logging
/// Insights events for trails</a> in the <i>CloudTrail User Guide</i>. By default, trails
/// created without specific event selectors are configured to log all read and write
/// management events, and no data events.
///
///
/// <para>
/// When an event occurs in your account, CloudTrail evaluates the event selectors or
/// advanced event selectors in 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>
///
/// <para>
/// Example
/// </para>
/// <ol> <li>
/// <para>
/// You create an event selector for a trail and specify that you want write-only events.
/// </para>
/// </li> <li>
/// <para>
/// The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API operations
/// occur in your account.
/// </para>
/// </li> <li>
/// <para>
/// CloudTrail evaluates whether the events match your event selectors.
/// </para>
/// </li> <li>
/// <para>
/// The <code>RunInstances</code> is a write-only event and it matches your event selector.
/// The trail logs the event.
/// </para>
/// </li> <li>
/// <para>
/// The <code>GetConsoleOutput</code> is a read-only event that doesn't match your event
/// selector. The trail doesn't log the event.
/// </para>
/// </li> </ol>
/// <para>
/// The <code>PutEventSelectors</code> operation must be called from the Region in which
/// the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception
/// is thrown.
/// </para>
///
/// <para>
/// You can configure up to five event selectors for each trail. For more information,
/// see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Logging
/// management events</a>, <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
/// data events</a>, and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas
/// in CloudTrail</a> in the <i>CloudTrail User Guide</i>.
/// </para>
///
/// <para>
/// You can add advanced event selectors, and conditions for your advanced event selectors,
/// up to a maximum of 500 values for all conditions and selectors on a trail. You can
/// use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but
/// not both. If you apply <code>AdvancedEventSelectors</code> to a trail, any existing
/// <code>EventSelectors</code> are overwritten. For more information about advanced event
/// selectors, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
/// data events</a> in the <i>CloudTrail User Guide</i>.
/// </para>
/// </summary>
public partial class PutEventSelectorsRequest : AmazonCloudTrailRequest
{
private List<AdvancedEventSelector> _advancedEventSelectors = new List<AdvancedEventSelector>();
private List<EventSelector> _eventSelectors = new List<EventSelector>();
private string _trailName;
/// <summary>
/// Gets and sets the property AdvancedEventSelectors.
/// <para>
/// Specifies the settings for advanced event selectors. You can add advanced event selectors,
/// and conditions for your advanced event selectors, up to a maximum of 500 values for
/// all conditions and selectors on a trail. You can use either <code>AdvancedEventSelectors</code>
/// or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code>
/// to a trail, any existing <code>EventSelectors</code> are overwritten. For more information
/// about advanced event selectors, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
/// data events</a> in the <i>CloudTrail User Guide</i>.
/// </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>
/// Specifies the settings for your event selectors. You can configure up to five event
/// selectors for a trail. You can use either <code>EventSelectors</code> or <code>AdvancedEventSelectors</code>
/// in a <code>PutEventSelectors</code> request, but not both. If you apply <code>EventSelectors</code>
/// to a trail, any existing <code>AdvancedEventSelectors</code> are overwritten.
/// </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 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 following 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;
}
}
} | 203 |
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 PutEventSelectors operation.
/// </summary>
public partial class PutEventSelectorsResponse : 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>
/// Specifies the advanced event selectors configured for your 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>
/// Specifies the event selectors configured for your 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>
/// Specifies the ARN of the trail that was updated with event selectors. The following
/// is the format of a trail ARN.
/// </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;
}
}
} | 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>
/// Container for the parameters to the PutInsightSelectors operation.
/// Lets you enable Insights event logging by specifying the Insights selectors that you
/// want to enable on an existing trail. You also use <code>PutInsightSelectors</code>
/// to turn off Insights event logging, by passing an empty list of insight types. The
/// valid Insights event types in this release are <code>ApiErrorRateInsight</code> and
/// <code>ApiCallRateInsight</code>.
///
///
/// <para>
/// To log CloudTrail Insights events on API call volume, the trail must log <code>write</code>
/// management events. To log CloudTrail Insights events on API error rate, the trail
/// must log <code>read</code> or <code>write</code> management events. You can call <code>GetEventSelectors</code>
/// on a trail to check whether the trail logs management events.
/// </para>
/// </summary>
public partial class PutInsightSelectorsRequest : AmazonCloudTrailRequest
{
private List<InsightSelector> _insightSelectors = new List<InsightSelector>();
private string _trailName;
/// <summary>
/// Gets and sets the property InsightSelectors.
/// <para>
/// A JSON string that contains the insight types you want 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>
[AWSProperty(Required=true)]
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 TrailName.
/// <para>
/// The name of the CloudTrail trail for which you want to change or add Insights selectors.
/// </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;
}
}
} | 102 |
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 PutInsightSelectors operation.
/// </summary>
public partial class PutInsightSelectorsResponse : 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 Insights event types that you want to log on a trail.
/// The valid Insights types in this release are <code>ApiErrorRateInsight</code> and
/// <code>ApiCallRateInsight</code>.
/// </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 change or add 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;
}
}
} | 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>
/// Container for the parameters to the PutResourcePolicy operation.
/// Attaches a resource-based permission policy to a CloudTrail channel that is used
/// for an integration with an event source outside of Amazon Web Services. For more information
/// about resource-based policies, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html">CloudTrail
/// resource-based policy examples</a> in the <i>CloudTrail User Guide</i>.
/// </summary>
public partial class PutResourcePolicyRequest : AmazonCloudTrailRequest
{
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 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;
}
/// <summary>
/// Gets and sets the property ResourcePolicy.
/// <para>
/// A JSON-formatted string for an Amazon Web Services resource-based policy.
/// </para>
///
/// <para>
/// The following are requirements for the resource policy:
/// </para>
/// <ul> <li>
/// <para>
/// Contains only one action: cloudtrail-data:PutAuditEvents
/// </para>
/// </li> <li>
/// <para>
/// Contains at least one statement. The policy can have a maximum of 20 statements.
///
/// </para>
/// </li> <li>
/// <para>
/// Each statement contains at least one principal. A statement can have a maximum of
/// 50 principals.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, 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;
}
}
} | 103 |
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 PutResourcePolicy operation.
/// </summary>
public partial class PutResourcePolicyResponse : 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 the 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>
/// The JSON-formatted string of the Amazon Web Services 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>
/// A SQL string of criteria about events that you want to collect in an event data store.
/// </summary>
public partial class Query
{
private DateTime? _creationTime;
private string _queryId;
private QueryStatus _queryStatus;
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The creation time of a query.
/// </para>
/// </summary>
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property QueryId.
/// <para>
/// The ID of a 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 QueryStatus.
/// <para>
/// The status of the query. This can be <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;
}
}
} | 97 |
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 query ID does not exist or does not map to a query.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class QueryIdNotFoundException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new QueryIdNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public QueryIdNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of QueryIdNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public QueryIdNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of QueryIdNotFoundException
/// </summary>
/// <param name="innerException"></param>
public QueryIdNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of QueryIdNotFoundException
/// </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 QueryIdNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of QueryIdNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public QueryIdNotFoundException(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 QueryIdNotFoundException 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 QueryIdNotFoundException(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>
/// Metadata about a query, such as the number of results.
/// </summary>
public partial class QueryStatistics
{
private long? _bytesScanned;
private int? _resultsCount;
private int? _totalResultsCount;
/// <summary>
/// Gets and sets the property BytesScanned.
/// <para>
/// The total bytes that the query scanned in the event data store. This value matches
/// the number of bytes for which your account is billed for the query, unless the query
/// is still running.
/// </para>
/// </summary>
public long BytesScanned
{
get { return this._bytesScanned.GetValueOrDefault(); }
set { this._bytesScanned = value; }
}
// Check to see if BytesScanned property is set
internal bool IsSetBytesScanned()
{
return this._bytesScanned.HasValue;
}
/// <summary>
/// Gets and sets the property ResultsCount.
/// <para>
/// The number of results returned.
/// </para>
/// </summary>
public int ResultsCount
{
get { return this._resultsCount.GetValueOrDefault(); }
set { this._resultsCount = value; }
}
// Check to see if ResultsCount property is set
internal bool IsSetResultsCount()
{
return this._resultsCount.HasValue;
}
/// <summary>
/// Gets and sets the property TotalResultsCount.
/// <para>
/// The total number of results returned by a query.
/// </para>
/// </summary>
public int TotalResultsCount
{
get { return this._totalResultsCount.GetValueOrDefault(); }
set { this._totalResultsCount = value; }
}
// Check to see if TotalResultsCount property is set
internal bool IsSetTotalResultsCount()
{
return this._totalResultsCount.HasValue;
}
}
} | 97 |
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>
/// Gets 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.
/// </summary>
public partial class QueryStatisticsForDescribeQuery
{
private long? _bytesScanned;
private DateTime? _creationTime;
private long? _eventsMatched;
private long? _eventsScanned;
private int? _executionTimeInMillis;
/// <summary>
/// Gets and sets the property BytesScanned.
/// <para>
/// The total bytes that the query scanned in the event data store. This value matches
/// the number of bytes for which your account is billed for the query, unless the query
/// is still running.
/// </para>
/// </summary>
public long BytesScanned
{
get { return this._bytesScanned.GetValueOrDefault(); }
set { this._bytesScanned = value; }
}
// Check to see if BytesScanned property is set
internal bool IsSetBytesScanned()
{
return this._bytesScanned.HasValue;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The creation time of the query.
/// </para>
/// </summary>
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property EventsMatched.
/// <para>
/// The number of events that matched a query.
/// </para>
/// </summary>
public long EventsMatched
{
get { return this._eventsMatched.GetValueOrDefault(); }
set { this._eventsMatched = value; }
}
// Check to see if EventsMatched property is set
internal bool IsSetEventsMatched()
{
return this._eventsMatched.HasValue;
}
/// <summary>
/// Gets and sets the property EventsScanned.
/// <para>
/// The number of events that the query scanned in the event data store.
/// </para>
/// </summary>
public long EventsScanned
{
get { return this._eventsScanned.GetValueOrDefault(); }
set { this._eventsScanned = value; }
}
// Check to see if EventsScanned property is set
internal bool IsSetEventsScanned()
{
return this._eventsScanned.HasValue;
}
/// <summary>
/// Gets and sets the property ExecutionTimeInMillis.
/// <para>
/// The query's run time, in milliseconds.
/// </para>
/// </summary>
public int ExecutionTimeInMillis
{
get { return this._executionTimeInMillis.GetValueOrDefault(); }
set { this._executionTimeInMillis = value; }
}
// Check to see if ExecutionTimeInMillis property is set
internal bool IsSetExecutionTimeInMillis()
{
return this._executionTimeInMillis.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>
/// Container for the parameters to the RegisterOrganizationDelegatedAdmin operation.
/// Registers an organization’s member account as the CloudTrail delegated administrator.
/// </summary>
public partial class RegisterOrganizationDelegatedAdminRequest : AmazonCloudTrailRequest
{
private string _memberAccountId;
/// <summary>
/// Gets and sets the property MemberAccountId.
/// <para>
/// An organization member account ID that you want to designate as a delegated administrator.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=12, Max=16)]
public string MemberAccountId
{
get { return this._memberAccountId; }
set { this._memberAccountId = value; }
}
// Check to see if MemberAccountId property is set
internal bool IsSetMemberAccountId()
{
return this._memberAccountId != 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>
/// Returns the following response if successful. Otherwise, returns an error.
/// </summary>
public partial class RegisterOrganizationDelegatedAdminResponse : 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 RemoveTags operation.
/// Removes the specified tags from a trail, event data store, or channel.
/// </summary>
public partial class RemoveTagsRequest : 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 from which tags should
/// be removed.
/// </para>
///
/// <para>
/// Example trail ARN format: <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
///
/// </para>
///
/// <para>
/// Example event data store ARN format: <code>arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
///
/// </para>
///
/// <para>
/// Example channel ARN format: <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>
/// Specifies a list of tags to be removed.
/// </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;
}
}
} | 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>
/// Returns the objects or data listed below if successful. Otherwise, returns an error.
/// </summary>
public partial class RemoveTagsResponse : 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>
/// Specifies the type and name of a resource referenced by an event.
/// </summary>
public partial class Resource
{
private string _resourceName;
private string _resourceType;
/// <summary>
/// Gets and sets the property ResourceName.
/// <para>
/// The name of the resource referenced by the event returned. These are user-created
/// names whose values will depend on the environment. For example, the resource name
/// might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an
/// EC2 Instance.
/// </para>
/// </summary>
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The type of a resource referenced by the event returned. When the resource type cannot
/// be determined, null is returned. Some examples of resource types are: <b>Instance</b>
/// for EC2, <b>Trail</b> for CloudTrail, <b>DBInstance</b> for Amazon RDS, and <b>AccessKey</b>
/// for IAM. To learn more about how to look up and filter events by the resource types
/// supported for a service, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events">Filtering
/// CloudTrail Events</a>.
/// </para>
/// </summary>
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
}
} | 84 |
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 resource does not exist, or the ARN format
/// of the resource is not valid. The following is the valid format for a resource ARN:
/// <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel</code>.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceARNNotValidException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new ResourceARNNotValidException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceARNNotValidException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceARNNotValidException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceARNNotValidException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceARNNotValidException
/// </summary>
/// <param name="innerException"></param>
public ResourceARNNotValidException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceARNNotValidException
/// </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 ResourceARNNotValidException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceARNNotValidException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceARNNotValidException(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 ResourceARNNotValidException 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 ResourceARNNotValidException(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 specified resource is not found.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </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 ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(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 ResourceNotFoundException 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 ResourceNotFoundException(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 policy is not found.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourcePolicyNotFoundException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new ResourcePolicyNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourcePolicyNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourcePolicyNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourcePolicyNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourcePolicyNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourcePolicyNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourcePolicyNotFoundException
/// </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 ResourcePolicyNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourcePolicyNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourcePolicyNotFoundException(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 ResourcePolicyNotFoundException 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 ResourcePolicyNotFoundException(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 resouce-based policy has syntax errors, or contains
/// a principal that is not valid.
///
///
/// <para>
/// The following are requirements for the resource policy:
/// </para>
/// <ul> <li>
/// <para>
/// Contains only one action: cloudtrail-data:PutAuditEvents
/// </para>
/// </li> <li>
/// <para>
/// Contains at least one statement. The policy can have a maximum of 20 statements.
///
/// </para>
/// </li> <li>
/// <para>
/// Each statement contains at least one principal. A statement can have a maximum of
/// 50 principals.
/// </para>
/// </li> </ul>
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourcePolicyNotValidException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new ResourcePolicyNotValidException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourcePolicyNotValidException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourcePolicyNotValidException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourcePolicyNotValidException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourcePolicyNotValidException
/// </summary>
/// <param name="innerException"></param>
public ResourcePolicyNotValidException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourcePolicyNotValidException
/// </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 ResourcePolicyNotValidException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourcePolicyNotValidException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourcePolicyNotValidException(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 ResourcePolicyNotValidException 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 ResourcePolicyNotValidException(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>
/// A resource tag.
/// </summary>
public partial class ResourceTag
{
private string _resourceId;
private List<Tag> _tagsList = new List<Tag>();
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// Specifies the ARN of the resource.
/// </para>
/// </summary>
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>
/// A list of tags.
/// </para>
/// </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;
}
}
} | 77 |
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 type is not supported by CloudTrail.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceTypeNotSupportedException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new ResourceTypeNotSupportedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceTypeNotSupportedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceTypeNotSupportedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceTypeNotSupportedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceTypeNotSupportedException
/// </summary>
/// <param name="innerException"></param>
public ResourceTypeNotSupportedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceTypeNotSupportedException
/// </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 ResourceTypeNotSupportedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceTypeNotSupportedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceTypeNotSupportedException(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 ResourceTypeNotSupportedException 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 ResourceTypeNotSupportedException(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>
/// Container for the parameters to the RestoreEventDataStore operation.
/// Restores a deleted event data store specified by <code>EventDataStore</code>, which
/// accepts an event data store ARN. You can only restore a deleted event data store within
/// the seven-day wait period after deletion. Restoring an event data store can take several
/// minutes, depending on the size of the event data store.
/// </summary>
public partial class RestoreEventDataStoreRequest : 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 that you want to restore.
/// </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;
}
}
} | 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 RestoreEventDataStore operation.
/// </summary>
public partial class RestoreEventDataStoreResponse : 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 that were used to select events.
/// </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 an 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 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 is collecting events from all Regions, or only
/// from the Region in which the event data store 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, 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 the 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 and the event data store cannot be
/// automatically deleted.
/// </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;
}
}
} | 261 |
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 S3 bucket does not exist.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class S3BucketDoesNotExistException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new S3BucketDoesNotExistException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public S3BucketDoesNotExistException(string message)
: base(message) {}
/// <summary>
/// Construct instance of S3BucketDoesNotExistException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public S3BucketDoesNotExistException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of S3BucketDoesNotExistException
/// </summary>
/// <param name="innerException"></param>
public S3BucketDoesNotExistException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of S3BucketDoesNotExistException
/// </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 S3BucketDoesNotExistException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of S3BucketDoesNotExistException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public S3BucketDoesNotExistException(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 S3BucketDoesNotExistException 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 S3BucketDoesNotExistException(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 settings for the source S3 bucket.
/// </summary>
public partial class S3ImportSource
{
private string _s3BucketAccessRoleArn;
private string _s3BucketRegion;
private string _s3LocationUri;
/// <summary>
/// Gets and sets the property S3BucketAccessRoleArn.
/// <para>
/// The IAM ARN role used to access the source S3 bucket.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string S3BucketAccessRoleArn
{
get { return this._s3BucketAccessRoleArn; }
set { this._s3BucketAccessRoleArn = value; }
}
// Check to see if S3BucketAccessRoleArn property is set
internal bool IsSetS3BucketAccessRoleArn()
{
return this._s3BucketAccessRoleArn != null;
}
/// <summary>
/// Gets and sets the property S3BucketRegion.
/// <para>
/// The Region associated with the source S3 bucket.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string S3BucketRegion
{
get { return this._s3BucketRegion; }
set { this._s3BucketRegion = value; }
}
// Check to see if S3BucketRegion property is set
internal bool IsSetS3BucketRegion()
{
return this._s3BucketRegion != null;
}
/// <summary>
/// Gets and sets the property S3LocationUri.
/// <para>
/// The URI for the source S3 bucket.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string S3LocationUri
{
get { return this._s3LocationUri; }
set { this._s3LocationUri = value; }
}
// Check to see if S3LocationUri property is set
internal bool IsSetS3LocationUri()
{
return this._s3LocationUri != null;
}
}
} | 98 |
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 configuration information about the channel.
/// </summary>
public partial class SourceConfig
{
private List<AdvancedEventSelector> _advancedEventSelectors = new List<AdvancedEventSelector>();
private bool? _applyToAllRegions;
/// <summary>
/// Gets and sets the property AdvancedEventSelectors.
/// <para>
/// The advanced event selectors that are configured for the channel.
/// </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 ApplyToAllRegions.
/// <para>
/// Specifies whether the channel applies to a single Region or to all Regions.
/// </para>
/// </summary>
public bool ApplyToAllRegions
{
get { return this._applyToAllRegions.GetValueOrDefault(); }
set { this._applyToAllRegions = value; }
}
// Check to see if ApplyToAllRegions property is set
internal bool IsSetApplyToAllRegions()
{
return this._applyToAllRegions.HasValue;
}
}
} | 76 |
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 StartEventDataStoreIngestion operation.
/// Starts the ingestion of live events on an event data store specified as either an
/// ARN or the ID portion of the ARN. To start ingestion, the event data store <code>Status</code>
/// must be <code>STOPPED_INGESTION</code> and the <code>eventCategory</code> must be
/// <code>Management</code>, <code>Data</code>, or <code>ConfigurationItem</code>.
/// </summary>
public partial class StartEventDataStoreIngestionRequest : 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 for which you want to start
/// ingestion.
/// </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;
}
}
} | 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>
/// This is the response object from the StartEventDataStoreIngestion operation.
/// </summary>
public partial class StartEventDataStoreIngestionResponse : 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 StartImport operation.
/// Starts an import of logged trail events from a source S3 bucket to a destination
/// event data store. By default, CloudTrail only imports events contained in the S3 bucket's
/// <code>CloudTrail</code> prefix and the prefixes inside the <code>CloudTrail</code>
/// prefix, and does not check prefixes for other Amazon Web Services services. If you
/// want to import CloudTrail events contained in another prefix, you must include the
/// prefix in the <code>S3LocationUri</code>. For more considerations about importing
/// trail events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-copy-trail-to-lake.html#cloudtrail-trail-copy-considerations">Considerations</a>.
///
///
///
/// <para>
/// When you start a new import, the <code>Destinations</code> and <code>ImportSource</code>
/// parameters are required. Before starting a new import, disable any access control
/// lists (ACLs) attached to the source S3 bucket. For more information about disabling
/// ACLs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling
/// ownership of objects and disabling ACLs for your bucket</a>.
/// </para>
///
/// <para>
/// When you retry an import, the <code>ImportID</code> parameter is required.
/// </para>
/// <note>
/// <para>
/// If the destination event data store is for an organization, you must use the management
/// account to import trail events. You cannot use the delegated administrator account
/// for the organization.
/// </para>
/// </note>
/// </summary>
public partial class StartImportRequest : AmazonCloudTrailRequest
{
private List<string> _destinations = new List<string>();
private DateTime? _endEventTime;
private string _importId;
private ImportSource _importSource;
private DateTime? _startEventTime;
/// <summary>
/// Gets and sets the property Destinations.
/// <para>
/// The ARN of the destination event data store. Use this parameter for a new import.
///
/// </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>
/// Use 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. When you specify a time range, CloudTrail checks the prefix and log file names
/// to verify the names contain a date between the specified <code>StartEventTime</code>
/// and <code>EndEventTime</code> before attempting to import events.
/// </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. Use this parameter when you are retrying an 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 for the import. Use this parameter for a new import.
/// </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 StartEventTime.
/// <para>
/// Use 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.
/// When you specify a time range, CloudTrail checks the prefix and log file names to
/// verify the names contain a date between the specified <code>StartEventTime</code>
/// and <code>EndEventTime</code> before attempting to import events.
/// </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;
}
}
} | 172 |
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 StartImport operation.
/// </summary>
public partial class StartImportResponse : AmazonWebServiceResponse
{
private DateTime? _createdTimestamp;
private List<string> _destinations = new List<string>();
private DateTime? _endEventTime;
private string _importId;
private ImportSource _importSource;
private ImportStatus _importStatus;
private DateTime? _startEventTime;
private DateTime? _updatedTimestamp;
/// <summary>
/// Gets and sets the property CreatedTimestamp.
/// <para>
/// The timestamp for 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 for the import.
/// </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 ImportStatus.
/// <para>
/// Shows the status of the import after a <code>StartImport</code> request. An import
/// finishes with a status of <code>COMPLETED</code> if there were no failures, or <code>FAILED</code>
/// if there were failures.
/// </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 the import's last update, if applicable.
/// </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;
}
}
} | 198 |
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 StartLogging operation.
/// Starts the recording of Amazon Web Services API calls and log file delivery for a
/// trail. For a trail that is enabled in all Regions, this operation must be called from
/// the Region in which the trail was created. This operation 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 StartLoggingRequest : AmazonCloudTrailRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs Amazon
/// Web Services API calls. 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 StartLoggingResponse : 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 StartQuery operation.
/// Starts a CloudTrail Lake query. Use the <code>QueryStatement</code> parameter to provide
/// your SQL query, enclosed in single quotation marks. Use the optional <code>DeliveryS3Uri</code>
/// parameter to deliver the query results to an S3 bucket.
///
///
/// <para>
/// <code>StartQuery</code> requires you specify either the <code>QueryStatement</code>
/// parameter, or a <code>QueryAlias</code> and any <code>QueryParameters</code>. In the
/// current release, the <code>QueryAlias</code> and <code>QueryParameters</code> parameters
/// are used only for the queries that populate the CloudTrail Lake dashboards.
/// </para>
/// </summary>
public partial class StartQueryRequest : AmazonCloudTrailRequest
{
private string _deliveryS3Uri;
private string _queryAlias;
private List<string> _queryParameters = new List<string>();
private string _queryStatement;
/// <summary>
/// Gets and sets the property DeliveryS3Uri.
/// <para>
/// The URI for the S3 bucket where CloudTrail delivers the query results.
/// </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 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 QueryParameters.
/// <para>
/// The query parameters for the specified <code>QueryAlias</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=10)]
public List<string> QueryParameters
{
get { return this._queryParameters; }
set { this._queryParameters = value; }
}
// Check to see if QueryParameters property is set
internal bool IsSetQueryParameters()
{
return this._queryParameters != null && this._queryParameters.Count > 0;
}
/// <summary>
/// Gets and sets the property QueryStatement.
/// <para>
/// The SQL code of your query.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=10000)]
public string QueryStatement
{
get { return this._queryStatement; }
set { this._queryStatement = value; }
}
// Check to see if QueryStatement property is set
internal bool IsSetQueryStatement()
{
return this._queryStatement != null;
}
}
} | 129 |
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 StartQuery operation.
/// </summary>
public partial class StartQueryResponse : AmazonWebServiceResponse
{
private string _queryId;
/// <summary>
/// Gets and sets the property QueryId.
/// <para>
/// The ID of the started 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;
}
}
} | 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>
/// Container for the parameters to the StopEventDataStoreIngestion operation.
/// Stops the ingestion of live events on an event data store specified as either an ARN
/// or the ID portion of the ARN. To stop ingestion, the event data store <code>Status</code>
/// must be <code>ENABLED</code> and the <code>eventCategory</code> must be <code>Management</code>,
/// <code>Data</code>, or <code>ConfigurationItem</code>.
/// </summary>
public partial class StopEventDataStoreIngestionRequest : 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 for which you want to stop
/// ingestion.
/// </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;
}
}
} | 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>
/// This is the response object from the StopEventDataStoreIngestion operation.
/// </summary>
public partial class StopEventDataStoreIngestionResponse : 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 StopImport operation.
/// Stops a specified import.
/// </summary>
public partial class StopImportRequest : AmazonCloudTrailRequest
{
private string _importId;
/// <summary>
/// Gets and sets the property ImportId.
/// <para>
/// The ID of 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 StopImport operation.
/// </summary>
public partial class StopImportResponse : 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 for 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 for the import.
/// </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>
/// Returns information on the stopped 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 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;
}
}
} | 215 |
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 StopLogging operation.
/// Suspends the recording of Amazon Web Services API calls and log file delivery for
/// the specified trail. Under most circumstances, there is no need to use this action.
/// You can update a trail without stopping it first. This action is the only way to stop
/// recording. For a trail enabled in all Regions, this operation must be called from
/// the Region in which the trail was created, or an <code>InvalidHomeRegionException</code>
/// will occur. This operation cannot be called on the shadow trails (replicated trails
/// in other Regions) of a trail enabled in all Regions.
/// </summary>
public partial class StopLoggingRequest : AmazonCloudTrailRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop
/// logging Amazon Web Services API calls. 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;
}
}
} | 70 |
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 StopLoggingResponse : 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>
/// A custom key-value pair associated with a resource such as a CloudTrail trail, event
/// data store, or channel.
/// </summary>
public partial class Tag
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// The key in a key-value pair. The key must be must be no longer than 128 Unicode characters.
/// The key must be unique for the resource to which it applies.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value in a key-value pair of a tag. The value must be no longer than 256 Unicode
/// characters.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != 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>
/// The number of tags per trail, event data store, or channel has exceeded the permitted
/// amount. Currently, the limit is 50.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TagsLimitExceededException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new TagsLimitExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TagsLimitExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TagsLimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TagsLimitExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TagsLimitExceededException
/// </summary>
/// <param name="innerException"></param>
public TagsLimitExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TagsLimitExceededException
/// </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 TagsLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TagsLimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TagsLimitExceededException(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 TagsLimitExceededException 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 TagsLimitExceededException(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 settings for a trail.
/// </summary>
public partial class Trail
{
private string _cloudWatchLogsLogGroupArn;
private string _cloudWatchLogsRoleArn;
private bool? _hasCustomEventSelectors;
private bool? _hasInsightSelectors;
private string _homeRegion;
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 an Amazon Resource Name (ARN), a unique identifier that represents 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 HasCustomEventSelectors.
/// <para>
/// Specifies if the trail has custom event selectors.
/// </para>
/// </summary>
public bool HasCustomEventSelectors
{
get { return this._hasCustomEventSelectors.GetValueOrDefault(); }
set { this._hasCustomEventSelectors = value; }
}
// Check to see if HasCustomEventSelectors property is set
internal bool IsSetHasCustomEventSelectors()
{
return this._hasCustomEventSelectors.HasValue;
}
/// <summary>
/// Gets and sets the property HasInsightSelectors.
/// <para>
/// Specifies whether a trail has insight types specified in an <code>InsightSelector</code>
/// list.
/// </para>
/// </summary>
public bool HasInsightSelectors
{
get { return this._hasInsightSelectors.GetValueOrDefault(); }
set { this._hasInsightSelectors = value; }
}
// Check to see if HasInsightSelectors property is set
internal bool IsSetHasInsightSelectors()
{
return this._hasInsightSelectors.HasValue;
}
/// <summary>
/// Gets and sets the property HomeRegion.
/// <para>
/// The Region in which the trail was created.
/// </para>
/// </summary>
public string HomeRegion
{
get { return this._homeRegion; }
set { this._homeRegion = value; }
}
// Check to see if HomeRegion property is set
internal bool IsSetHomeRegion()
{
return this._homeRegion != null;
}
/// <summary>
/// Gets and sets the property IncludeGlobalServiceEvents.
/// <para>
/// Set to <b>True</b> to include Amazon Web Services API calls from Amazon Web Services
/// global services such as IAM. Otherwise, <b>False</b>.
/// </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 only in one Region or exists 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 logs 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 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>
/// Name of the trail set by calling <a>CreateTrail</a>. The maximum length is 128 characters.
/// </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>
/// Name of the Amazon S3 bucket into which CloudTrail delivers your trail 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>
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 SnsTopicARN.
/// <para>
/// Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications
/// when log files are delivered. The following is the format of a topic ARN.
/// </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. The following is the format of a trail ARN.
/// </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;
}
}
} | 366 |
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 trail already exists.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TrailAlreadyExistsException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new TrailAlreadyExistsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TrailAlreadyExistsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TrailAlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TrailAlreadyExistsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TrailAlreadyExistsException
/// </summary>
/// <param name="innerException"></param>
public TrailAlreadyExistsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TrailAlreadyExistsException
/// </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 TrailAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TrailAlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TrailAlreadyExistsException(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 TrailAlreadyExistsException 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 TrailAlreadyExistsException(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>
/// Information about a CloudTrail trail, including the trail's name, home Region, and
/// Amazon Resource Name (ARN).
/// </summary>
public partial class TrailInfo
{
private string _homeRegion;
private string _name;
private string _trailARN;
/// <summary>
/// Gets and sets the property HomeRegion.
/// <para>
/// The Amazon Web Services Region in which a trail was created.
/// </para>
/// </summary>
public string HomeRegion
{
get { return this._homeRegion; }
set { this._homeRegion = value; }
}
// Check to see if HomeRegion property is set
internal bool IsSetHomeRegion()
{
return this._homeRegion != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of a 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 TrailARN.
/// <para>
/// The ARN of a trail.
/// </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;
}
}
} | 96 |
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 trail with the given name is not found.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TrailNotFoundException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new TrailNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TrailNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TrailNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TrailNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TrailNotFoundException
/// </summary>
/// <param name="innerException"></param>
public TrailNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TrailNotFoundException
/// </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 TrailNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TrailNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TrailNotFoundException(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 TrailNotFoundException 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 TrailNotFoundException(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 no longer in use.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TrailNotProvidedException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new TrailNotProvidedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TrailNotProvidedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TrailNotProvidedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TrailNotProvidedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TrailNotProvidedException
/// </summary>
/// <param name="innerException"></param>
public TrailNotProvidedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TrailNotProvidedException
/// </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 TrailNotProvidedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TrailNotProvidedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TrailNotProvidedException(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 TrailNotProvidedException 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 TrailNotProvidedException(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 requested operation is not supported.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class UnsupportedOperationException : AmazonCloudTrailException
{
/// <summary>
/// Constructs a new UnsupportedOperationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public UnsupportedOperationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of UnsupportedOperationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public UnsupportedOperationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of UnsupportedOperationException
/// </summary>
/// <param name="innerException"></param>
public UnsupportedOperationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of UnsupportedOperationException
/// </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 UnsupportedOperationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of UnsupportedOperationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public UnsupportedOperationException(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 UnsupportedOperationException 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 UnsupportedOperationException(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>
/// Container for the parameters to the UpdateChannel operation.
/// Updates a channel specified by a required channel ARN or UUID.
/// </summary>
public partial class UpdateChannelRequest : AmazonCloudTrailRequest
{
private string _channel;
private List<Destination> _destinations = new List<Destination>();
private string _name;
/// <summary>
/// Gets and sets the property Channel.
/// <para>
/// The ARN or ID (the ARN suffix) of the channel that you want to update.
/// </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;
}
/// <summary>
/// Gets and sets the property Destinations.
/// <para>
/// The ARNs of event data stores that you want to log 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>
/// Changes the name of the 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;
}
}
} | 99 |
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 UpdateChannel operation.
/// </summary>
public partial class UpdateChannelResponse : AmazonWebServiceResponse
{
private string _channelArn;
private List<Destination> _destinations = new List<Destination>();
private string _name;
private string _source;
/// <summary>
/// Gets and sets the property ChannelArn.
/// <para>
/// The ARN of the channel that was updated.
/// </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 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 channel that was updated.
/// </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 event source of the channel that was updated.
/// </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;
}
}
} | 118 |
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 UpdateEventDataStore operation.
/// Updates an event data store. The required <code>EventDataStore</code> value is an
/// ARN or the ID portion of the ARN. Other parameters are optional, but at least one
/// optional parameter must be specified, or CloudTrail throws an error. <code>RetentionPeriod</code>
/// is in days, and valid values are integers between 90 and 2557. By default, <code>TerminationProtection</code>
/// is enabled.
///
///
/// <para>
/// For event data stores for CloudTrail events, <code>AdvancedEventSelectors</code> includes
/// or excludes management and data events in your event data store. For more information
/// about <code>AdvancedEventSelectors</code>, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html">AdvancedEventSelectors</a>.
/// </para>
///
/// <para>
/// For event data stores for Config configuration items, Audit Manager evidence, or
/// non-Amazon Web Services events, <code>AdvancedEventSelectors</code> includes events
/// of that type in your event data store.
/// </para>
/// </summary>
public partial class UpdateEventDataStoreRequest : AmazonCloudTrailRequest
{
private List<AdvancedEventSelector> _advancedEventSelectors = new List<AdvancedEventSelector>();
private string _eventDataStore;
private string _kmsKeyId;
private bool? _multiRegionEnabled;
private string _name;
private bool? _organizationEnabled;
private int? _retentionPeriod;
private bool? _terminationProtectionEnabled;
/// <summary>
/// Gets and sets the property AdvancedEventSelectors.
/// <para>
/// The advanced event selectors used to select events for the event data store. You can
/// configure up to five advanced event selectors for each event 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 EventDataStore.
/// <para>
/// The ARN (or the ID suffix of the ARN) of the event data store that you want to update.
/// </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;
}
/// <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 an 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 event data store name.
/// </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>
/// 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, 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 TerminationProtectionEnabled.
/// <para>
/// Indicates that termination protection is enabled and the event data store cannot be
/// automatically deleted.
/// </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;
}
}
} | 255 |
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 UpdateEventDataStore operation.
/// </summary>
public partial class UpdateEventDataStoreResponse : 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 that are applied to the event 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 an event data store was first 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 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, 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 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 the event data store was last updated. <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 UpdateTrail operation.
/// Updates trail settings that control what events you are logging, and how to handle
/// log files. Changes to a trail do not require stopping the CloudTrail service. Use
/// this action to designate an existing bucket for log delivery. If the existing bucket
/// has previously been a target for CloudTrail log files, an IAM policy exists for the
/// bucket. <code>UpdateTrail</code> must be called from the Region in which the trail
/// was created; otherwise, an <code>InvalidHomeRegionException</code> is thrown.
/// </summary>
public partial class UpdateTrailRequest : 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;
/// <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 are 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 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 applies only to the current Region or to all Regions.
/// The default is false. If the trail exists only in the current Region and this value
/// is set to true, shadow trails (replications of the trail) will be created in the other
/// Regions. If the trail exists in all Regions and this value is set to false, the trail
/// will remain in the Region where it was created, and its shadow trails in other Regions
/// will be deleted. As a best practice, consider using 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 applied to 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.
/// If the trail is not an organization trail and this is set to <code>true</code>, the
/// trail will be created in all Amazon Web Services accounts that belong to the organization.
/// If the trail is an organization trail and this is set to <code>false</code>, the trail
/// will remain in the current Amazon Web Services account but be deleted from all member
/// accounts in the organization.
/// </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 "alias/", 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>
/// alias/MyAliasName
/// </para>
/// </li> <li>
/// <para>
/// arn:aws:kms:us-east-2:123456789012:alias/MyAliasName
/// </para>
/// </li> <li>
/// <para>
/// arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
/// </para>
/// </li> <li>
/// <para>
/// 12345678-1234-1234-1234-123456789012
/// </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 or trail ARN. If <code>Name</code> is 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 <code>Name</code> is a trail ARN, it must be in the following format.
/// </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;
}
/// <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>
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;
}
}
} | 352 |
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 UpdateTrailResponse : 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
/// are 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 logs 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 IAM 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 following is the format of a topic ARN.
/// </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 updated. The following is the format of a
/// trail ARN.
/// </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;
}
}
} | 307 |
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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudTrail.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudTrail.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AccountHasOngoingImportException Object
/// </summary>
public class AccountHasOngoingImportExceptionUnmarshaller : IErrorResponseUnmarshaller<AccountHasOngoingImportException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AccountHasOngoingImportException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public AccountHasOngoingImportException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
AccountHasOngoingImportException unmarshalledObject = new AccountHasOngoingImportException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static AccountHasOngoingImportExceptionUnmarshaller _instance = new AccountHasOngoingImportExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AccountHasOngoingImportExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.