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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DeleteArchive operation.
/// </summary>
public partial class DeleteArchiveResponse : 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DeleteConnection operation.
/// Deletes a connection.
/// </summary>
public partial class DeleteConnectionRequest : AmazonCloudWatchEventsRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the connection to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DeleteConnection operation.
/// </summary>
public partial class DeleteConnectionResponse : AmazonWebServiceResponse
{
private string _connectionArn;
private ConnectionState _connectionState;
private DateTime? _creationTime;
private DateTime? _lastAuthorizedTime;
private DateTime? _lastModifiedTime;
/// <summary>
/// Gets and sets the property ConnectionArn.
/// <para>
/// The ARN of the connection that was deleted.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ConnectionArn
{
get { return this._connectionArn; }
set { this._connectionArn = value; }
}
// Check to see if ConnectionArn property is set
internal bool IsSetConnectionArn()
{
return this._connectionArn != null;
}
/// <summary>
/// Gets and sets the property ConnectionState.
/// <para>
/// The state of the connection before it was deleted.
/// </para>
/// </summary>
public ConnectionState ConnectionState
{
get { return this._connectionState; }
set { this._connectionState = value; }
}
// Check to see if ConnectionState property is set
internal bool IsSetConnectionState()
{
return this._connectionState != null;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// A time stamp for the time that the connection was created.
/// </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 LastAuthorizedTime.
/// <para>
/// A time stamp for the time that the connection was last authorized before it wa deleted.
/// </para>
/// </summary>
public DateTime LastAuthorizedTime
{
get { return this._lastAuthorizedTime.GetValueOrDefault(); }
set { this._lastAuthorizedTime = value; }
}
// Check to see if LastAuthorizedTime property is set
internal bool IsSetLastAuthorizedTime()
{
return this._lastAuthorizedTime.HasValue;
}
/// <summary>
/// Gets and sets the property LastModifiedTime.
/// <para>
/// A time stamp for the time that the connection was last modified before it was deleted.
/// </para>
/// </summary>
public DateTime LastModifiedTime
{
get { return this._lastModifiedTime.GetValueOrDefault(); }
set { this._lastModifiedTime = value; }
}
// Check to see if LastModifiedTime property is set
internal bool IsSetLastModifiedTime()
{
return this._lastModifiedTime.HasValue;
}
}
} | 134 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DeleteEventBus operation.
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
public partial class DeleteEventBusRequest : AmazonCloudWatchEventsRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event bus to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
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;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DeleteEventBus operation.
/// </summary>
public partial class DeleteEventBusResponse : 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DeletePartnerEventSource operation.
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
public partial class DeletePartnerEventSourceRequest : AmazonCloudWatchEventsRequest
{
private string _account;
private string _name;
/// <summary>
/// Gets and sets the property Account.
/// <para>
/// The Amazon Web Services account ID of the Amazon Web Services customer that the event
/// source was created for.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=12, Max=12)]
public string Account
{
get { return this._account; }
set { this._account = value; }
}
// Check to see if Account property is set
internal bool IsSetAccount()
{
return this._account != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event source to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
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;
}
}
} | 87 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DeletePartnerEventSource operation.
/// </summary>
public partial class DeletePartnerEventSourceResponse : 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DeleteRule operation.
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
public partial class DeleteRuleRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private bool? _force;
private string _name;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Force.
/// <para>
/// If this is a managed rule, created by an Amazon Web Services service on your behalf,
/// you must specify <code>Force</code> as <code>True</code> to delete the rule. This
/// parameter is ignored for rules that are not managed rules. You can check whether a
/// rule is a managed rule by using <code>DescribeRule</code> or <code>ListRules</code>
/// and checking the <code>ManagedBy</code> field of the response.
/// </para>
/// </summary>
public bool Force
{
get { return this._force.GetValueOrDefault(); }
set { this._force = value; }
}
// Check to see if Force property is set
internal bool IsSetForce()
{
return this._force.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 127 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DeleteRule operation.
/// </summary>
public partial class DeleteRuleResponse : 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DescribeApiDestination operation.
/// Retrieves details about an API destination.
/// </summary>
public partial class DescribeApiDestinationRequest : AmazonCloudWatchEventsRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the API destination to retrieve.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DescribeApiDestination operation.
/// </summary>
public partial class DescribeApiDestinationResponse : AmazonWebServiceResponse
{
private string _apiDestinationArn;
private ApiDestinationState _apiDestinationState;
private string _connectionArn;
private DateTime? _creationTime;
private string _description;
private ApiDestinationHttpMethod _httpMethod;
private string _invocationEndpoint;
private int? _invocationRateLimitPerSecond;
private DateTime? _lastModifiedTime;
private string _name;
/// <summary>
/// Gets and sets the property ApiDestinationArn.
/// <para>
/// The ARN of the API destination retrieved.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ApiDestinationArn
{
get { return this._apiDestinationArn; }
set { this._apiDestinationArn = value; }
}
// Check to see if ApiDestinationArn property is set
internal bool IsSetApiDestinationArn()
{
return this._apiDestinationArn != null;
}
/// <summary>
/// Gets and sets the property ApiDestinationState.
/// <para>
/// The state of the API destination retrieved.
/// </para>
/// </summary>
public ApiDestinationState ApiDestinationState
{
get { return this._apiDestinationState; }
set { this._apiDestinationState = value; }
}
// Check to see if ApiDestinationState property is set
internal bool IsSetApiDestinationState()
{
return this._apiDestinationState != null;
}
/// <summary>
/// Gets and sets the property ConnectionArn.
/// <para>
/// The ARN of the connection specified for the API destination retrieved.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ConnectionArn
{
get { return this._connectionArn; }
set { this._connectionArn = value; }
}
// Check to see if ConnectionArn property is set
internal bool IsSetConnectionArn()
{
return this._connectionArn != null;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// A time stamp for the time that the API destination was created.
/// </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 Description.
/// <para>
/// The description for the API destination retrieved.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property HttpMethod.
/// <para>
/// The method to use to connect to the HTTP endpoint.
/// </para>
/// </summary>
public ApiDestinationHttpMethod HttpMethod
{
get { return this._httpMethod; }
set { this._httpMethod = value; }
}
// Check to see if HttpMethod property is set
internal bool IsSetHttpMethod()
{
return this._httpMethod != null;
}
/// <summary>
/// Gets and sets the property InvocationEndpoint.
/// <para>
/// The URL to use to connect to the HTTP endpoint.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string InvocationEndpoint
{
get { return this._invocationEndpoint; }
set { this._invocationEndpoint = value; }
}
// Check to see if InvocationEndpoint property is set
internal bool IsSetInvocationEndpoint()
{
return this._invocationEndpoint != null;
}
/// <summary>
/// Gets and sets the property InvocationRateLimitPerSecond.
/// <para>
/// The maximum number of invocations per second to specified for the API destination.
/// Note that if you set the invocation rate maximum to a value lower the rate necessary
/// to send all events received on to the destination HTTP endpoint, some events may not
/// be delivered within the 24-hour retry window. If you plan to set the rate lower than
/// the rate necessary to deliver all events, consider using a dead-letter queue to catch
/// events that are not delivered within 24 hours.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int InvocationRateLimitPerSecond
{
get { return this._invocationRateLimitPerSecond.GetValueOrDefault(); }
set { this._invocationRateLimitPerSecond = value; }
}
// Check to see if InvocationRateLimitPerSecond property is set
internal bool IsSetInvocationRateLimitPerSecond()
{
return this._invocationRateLimitPerSecond.HasValue;
}
/// <summary>
/// Gets and sets the property LastModifiedTime.
/// <para>
/// A time stamp for the time that the API destination was last modified.
/// </para>
/// </summary>
public DateTime LastModifiedTime
{
get { return this._lastModifiedTime.GetValueOrDefault(); }
set { this._lastModifiedTime = value; }
}
// Check to see if LastModifiedTime property is set
internal bool IsSetLastModifiedTime()
{
return this._lastModifiedTime.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the API destination retrieved.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 239 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DescribeArchive operation.
/// Retrieves details about an archive.
/// </summary>
public partial class DescribeArchiveRequest : AmazonCloudWatchEventsRequest
{
private string _archiveName;
/// <summary>
/// Gets and sets the property ArchiveName.
/// <para>
/// The name of the archive to retrieve.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=48)]
public string ArchiveName
{
get { return this._archiveName; }
set { this._archiveName = value; }
}
// Check to see if ArchiveName property is set
internal bool IsSetArchiveName()
{
return this._archiveName != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DescribeArchive operation.
/// </summary>
public partial class DescribeArchiveResponse : AmazonWebServiceResponse
{
private string _archiveArn;
private string _archiveName;
private DateTime? _creationTime;
private string _description;
private long? _eventCount;
private string _eventPattern;
private string _eventSourceArn;
private int? _retentionDays;
private long? _sizeBytes;
private ArchiveState _state;
private string _stateReason;
/// <summary>
/// Gets and sets the property ArchiveArn.
/// <para>
/// The ARN of the archive.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ArchiveArn
{
get { return this._archiveArn; }
set { this._archiveArn = value; }
}
// Check to see if ArchiveArn property is set
internal bool IsSetArchiveArn()
{
return this._archiveArn != null;
}
/// <summary>
/// Gets and sets the property ArchiveName.
/// <para>
/// The name of the archive.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=48)]
public string ArchiveName
{
get { return this._archiveName; }
set { this._archiveName = value; }
}
// Check to see if ArchiveName property is set
internal bool IsSetArchiveName()
{
return this._archiveName != null;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The time at which the archive was created.
/// </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 Description.
/// <para>
/// The description of the archive.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EventCount.
/// <para>
/// The number of events in the archive.
/// </para>
/// </summary>
public long EventCount
{
get { return this._eventCount.GetValueOrDefault(); }
set { this._eventCount = value; }
}
// Check to see if EventCount property is set
internal bool IsSetEventCount()
{
return this._eventCount.HasValue;
}
/// <summary>
/// Gets and sets the property EventPattern.
/// <para>
/// The event pattern used to filter events sent to the archive.
/// </para>
/// </summary>
public string EventPattern
{
get { return this._eventPattern; }
set { this._eventPattern = value; }
}
// Check to see if EventPattern property is set
internal bool IsSetEventPattern()
{
return this._eventPattern != null;
}
/// <summary>
/// Gets and sets the property EventSourceArn.
/// <para>
/// The ARN of the event source associated with the archive.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventSourceArn
{
get { return this._eventSourceArn; }
set { this._eventSourceArn = value; }
}
// Check to see if EventSourceArn property is set
internal bool IsSetEventSourceArn()
{
return this._eventSourceArn != null;
}
/// <summary>
/// Gets and sets the property RetentionDays.
/// <para>
/// The number of days to retain events for in the archive.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int RetentionDays
{
get { return this._retentionDays.GetValueOrDefault(); }
set { this._retentionDays = value; }
}
// Check to see if RetentionDays property is set
internal bool IsSetRetentionDays()
{
return this._retentionDays.HasValue;
}
/// <summary>
/// Gets and sets the property SizeBytes.
/// <para>
/// The size of the archive in bytes.
/// </para>
/// </summary>
public long SizeBytes
{
get { return this._sizeBytes.GetValueOrDefault(); }
set { this._sizeBytes = value; }
}
// Check to see if SizeBytes property is set
internal bool IsSetSizeBytes()
{
return this._sizeBytes.HasValue;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the archive.
/// </para>
/// </summary>
public ArchiveState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property StateReason.
/// <para>
/// The reason that the archive is in the state.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string StateReason
{
get { return this._stateReason; }
set { this._stateReason = value; }
}
// Check to see if StateReason property is set
internal bool IsSetStateReason()
{
return this._stateReason != null;
}
}
} | 253 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DescribeConnection operation.
/// Retrieves details about a connection.
/// </summary>
public partial class DescribeConnectionRequest : AmazonCloudWatchEventsRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the connection to retrieve.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DescribeConnection operation.
/// </summary>
public partial class DescribeConnectionResponse : AmazonWebServiceResponse
{
private ConnectionAuthorizationType _authorizationType;
private ConnectionAuthResponseParameters _authParameters;
private string _connectionArn;
private ConnectionState _connectionState;
private DateTime? _creationTime;
private string _description;
private DateTime? _lastAuthorizedTime;
private DateTime? _lastModifiedTime;
private string _name;
private string _secretArn;
private string _stateReason;
/// <summary>
/// Gets and sets the property AuthorizationType.
/// <para>
/// The type of authorization specified for the connection.
/// </para>
/// </summary>
public ConnectionAuthorizationType AuthorizationType
{
get { return this._authorizationType; }
set { this._authorizationType = value; }
}
// Check to see if AuthorizationType property is set
internal bool IsSetAuthorizationType()
{
return this._authorizationType != null;
}
/// <summary>
/// Gets and sets the property AuthParameters.
/// <para>
/// The parameters to use for authorization for the connection.
/// </para>
/// </summary>
public ConnectionAuthResponseParameters AuthParameters
{
get { return this._authParameters; }
set { this._authParameters = value; }
}
// Check to see if AuthParameters property is set
internal bool IsSetAuthParameters()
{
return this._authParameters != null;
}
/// <summary>
/// Gets and sets the property ConnectionArn.
/// <para>
/// The ARN of the connection retrieved.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ConnectionArn
{
get { return this._connectionArn; }
set { this._connectionArn = value; }
}
// Check to see if ConnectionArn property is set
internal bool IsSetConnectionArn()
{
return this._connectionArn != null;
}
/// <summary>
/// Gets and sets the property ConnectionState.
/// <para>
/// The state of the connection retrieved.
/// </para>
/// </summary>
public ConnectionState ConnectionState
{
get { return this._connectionState; }
set { this._connectionState = value; }
}
// Check to see if ConnectionState property is set
internal bool IsSetConnectionState()
{
return this._connectionState != null;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// A time stamp for the time that the connection was created.
/// </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 Description.
/// <para>
/// The description for the connection retrieved.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property LastAuthorizedTime.
/// <para>
/// A time stamp for the time that the connection was last authorized.
/// </para>
/// </summary>
public DateTime LastAuthorizedTime
{
get { return this._lastAuthorizedTime.GetValueOrDefault(); }
set { this._lastAuthorizedTime = value; }
}
// Check to see if LastAuthorizedTime property is set
internal bool IsSetLastAuthorizedTime()
{
return this._lastAuthorizedTime.HasValue;
}
/// <summary>
/// Gets and sets the property LastModifiedTime.
/// <para>
/// A time stamp for the time that the connection was last modified.
/// </para>
/// </summary>
public DateTime LastModifiedTime
{
get { return this._lastModifiedTime.GetValueOrDefault(); }
set { this._lastModifiedTime = value; }
}
// Check to see if LastModifiedTime property is set
internal bool IsSetLastModifiedTime()
{
return this._lastModifiedTime.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the connection retrieved.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property SecretArn.
/// <para>
/// The ARN of the secret created from the authorization parameters specified for the
/// connection.
/// </para>
/// </summary>
[AWSProperty(Min=20, Max=2048)]
public string SecretArn
{
get { return this._secretArn; }
set { this._secretArn = value; }
}
// Check to see if SecretArn property is set
internal bool IsSetSecretArn()
{
return this._secretArn != null;
}
/// <summary>
/// Gets and sets the property StateReason.
/// <para>
/// The reason that the connection is in the current connection state.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string StateReason
{
get { return this._stateReason; }
set { this._stateReason = value; }
}
// Check to see if StateReason property is set
internal bool IsSetStateReason()
{
return this._stateReason != null;
}
}
} | 253 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DescribeEventBus operation.
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
public partial class DescribeEventBusRequest : AmazonCloudWatchEventsRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name or ARN of the event bus to show details for. If you omit this, the default
/// event bus is displayed.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
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;
}
}
} | 73 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DescribeEventBus operation.
/// </summary>
public partial class DescribeEventBusResponse : AmazonWebServiceResponse
{
private string _arn;
private string _name;
private string _policy;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the account permitted to write events to the current
/// account.
/// </para>
/// </summary>
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event bus. Currently, this is always <code>default</code>.
/// </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 Policy.
/// <para>
/// The policy that enables the external account to send events to your account.
/// </para>
/// </summary>
public string Policy
{
get { return this._policy; }
set { this._policy = value; }
}
// Check to see if Policy property is set
internal bool IsSetPolicy()
{
return this._policy != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DescribeEventSource operation.
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
public partial class DescribeEventSourceRequest : AmazonCloudWatchEventsRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the partner event source to display the details of.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DescribeEventSource operation.
/// </summary>
public partial class DescribeEventSourceResponse : AmazonWebServiceResponse
{
private string _arn;
private string _createdBy;
private DateTime? _creationTime;
private DateTime? _expirationTime;
private string _name;
private EventSourceState _state;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the partner event source.
/// </para>
/// </summary>
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedBy.
/// <para>
/// The name of the SaaS partner that created the event source.
/// </para>
/// </summary>
public string CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The date and time that the event source was created.
/// </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 ExpirationTime.
/// <para>
/// The date and time that the event source will expire if you do not create a matching
/// event bus.
/// </para>
/// </summary>
public DateTime ExpirationTime
{
get { return this._expirationTime.GetValueOrDefault(); }
set { this._expirationTime = value; }
}
// Check to see if ExpirationTime property is set
internal bool IsSetExpirationTime()
{
return this._expirationTime.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the partner event source.
/// </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 State.
/// <para>
/// The state of the event source. If it is ACTIVE, you have already created a matching
/// event bus for this event source, and that event bus is active. If it is PENDING, either
/// you haven't yet created a matching event bus, or that event bus is deactivated. If
/// it is DELETED, you have created a matching event bus, but the event source has since
/// been deleted.
/// </para>
/// </summary>
public EventSourceState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
} | 157 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DescribePartnerEventSource operation.
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
public partial class DescribePartnerEventSourceRequest : AmazonCloudWatchEventsRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event source to display.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
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;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DescribePartnerEventSource operation.
/// </summary>
public partial class DescribePartnerEventSourceResponse : AmazonWebServiceResponse
{
private string _arn;
private string _name;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the event source.
/// </para>
/// </summary>
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event source.
/// </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;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DescribeReplay operation.
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
public partial class DescribeReplayRequest : AmazonCloudWatchEventsRequest
{
private string _replayName;
/// <summary>
/// Gets and sets the property ReplayName.
/// <para>
/// The name of the replay to retrieve.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string ReplayName
{
get { return this._replayName; }
set { this._replayName = value; }
}
// Check to see if ReplayName property is set
internal bool IsSetReplayName()
{
return this._replayName != null;
}
}
} | 67 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DescribeReplay operation.
/// </summary>
public partial class DescribeReplayResponse : AmazonWebServiceResponse
{
private string _description;
private ReplayDestination _destination;
private DateTime? _eventEndTime;
private DateTime? _eventLastReplayedTime;
private string _eventSourceArn;
private DateTime? _eventStartTime;
private string _replayArn;
private DateTime? _replayEndTime;
private string _replayName;
private DateTime? _replayStartTime;
private ReplayState _state;
private string _stateReason;
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the replay.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Destination.
/// <para>
/// A <code>ReplayDestination</code> object that contains details about the replay.
/// </para>
/// </summary>
public ReplayDestination 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 EventEndTime.
/// <para>
/// The time stamp for the last event that was replayed from the archive.
/// </para>
/// </summary>
public DateTime EventEndTime
{
get { return this._eventEndTime.GetValueOrDefault(); }
set { this._eventEndTime = value; }
}
// Check to see if EventEndTime property is set
internal bool IsSetEventEndTime()
{
return this._eventEndTime.HasValue;
}
/// <summary>
/// Gets and sets the property EventLastReplayedTime.
/// <para>
/// The time that the event was last replayed.
/// </para>
/// </summary>
public DateTime EventLastReplayedTime
{
get { return this._eventLastReplayedTime.GetValueOrDefault(); }
set { this._eventLastReplayedTime = value; }
}
// Check to see if EventLastReplayedTime property is set
internal bool IsSetEventLastReplayedTime()
{
return this._eventLastReplayedTime.HasValue;
}
/// <summary>
/// Gets and sets the property EventSourceArn.
/// <para>
/// The ARN of the archive events were replayed from.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventSourceArn
{
get { return this._eventSourceArn; }
set { this._eventSourceArn = value; }
}
// Check to see if EventSourceArn property is set
internal bool IsSetEventSourceArn()
{
return this._eventSourceArn != null;
}
/// <summary>
/// Gets and sets the property EventStartTime.
/// <para>
/// The time stamp of the first event that was last replayed from the archive.
/// </para>
/// </summary>
public DateTime EventStartTime
{
get { return this._eventStartTime.GetValueOrDefault(); }
set { this._eventStartTime = value; }
}
// Check to see if EventStartTime property is set
internal bool IsSetEventStartTime()
{
return this._eventStartTime.HasValue;
}
/// <summary>
/// Gets and sets the property ReplayArn.
/// <para>
/// The ARN of the replay.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ReplayArn
{
get { return this._replayArn; }
set { this._replayArn = value; }
}
// Check to see if ReplayArn property is set
internal bool IsSetReplayArn()
{
return this._replayArn != null;
}
/// <summary>
/// Gets and sets the property ReplayEndTime.
/// <para>
/// A time stamp for the time that the replay stopped.
/// </para>
/// </summary>
public DateTime ReplayEndTime
{
get { return this._replayEndTime.GetValueOrDefault(); }
set { this._replayEndTime = value; }
}
// Check to see if ReplayEndTime property is set
internal bool IsSetReplayEndTime()
{
return this._replayEndTime.HasValue;
}
/// <summary>
/// Gets and sets the property ReplayName.
/// <para>
/// The name of the replay.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string ReplayName
{
get { return this._replayName; }
set { this._replayName = value; }
}
// Check to see if ReplayName property is set
internal bool IsSetReplayName()
{
return this._replayName != null;
}
/// <summary>
/// Gets and sets the property ReplayStartTime.
/// <para>
/// A time stamp for the time that the replay started.
/// </para>
/// </summary>
public DateTime ReplayStartTime
{
get { return this._replayStartTime.GetValueOrDefault(); }
set { this._replayStartTime = value; }
}
// Check to see if ReplayStartTime property is set
internal bool IsSetReplayStartTime()
{
return this._replayStartTime.HasValue;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The current state of the replay.
/// </para>
/// </summary>
public ReplayState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property StateReason.
/// <para>
/// The reason that the replay is in the current state.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string StateReason
{
get { return this._stateReason; }
set { this._stateReason = value; }
}
// Check to see if StateReason property is set
internal bool IsSetStateReason()
{
return this._stateReason != null;
}
}
} | 271 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DescribeRule operation.
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
public partial class DescribeRuleRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private string _name;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DescribeRule operation.
/// </summary>
public partial class DescribeRuleResponse : AmazonWebServiceResponse
{
private string _arn;
private string _createdBy;
private string _description;
private string _eventBusName;
private string _eventPattern;
private string _managedBy;
private string _name;
private string _roleArn;
private string _scheduleExpression;
private RuleState _state;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedBy.
/// <para>
/// The account ID of the user that created the rule. If you use <code>PutRule</code>
/// to put a rule on an event bus in another account, the other account is the owner of
/// the rule, and the rule ARN includes the account ID for that account. However, the
/// value for <code>CreatedBy</code> is the account ID as the account that created the
/// rule in the other account.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the rule.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name of the event bus associated with the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property EventPattern.
/// <para>
/// The event pattern. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
/// and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
/// </summary>
public string EventPattern
{
get { return this._eventPattern; }
set { this._eventPattern = value; }
}
// Check to see if EventPattern property is set
internal bool IsSetEventPattern()
{
return this._eventPattern != null;
}
/// <summary>
/// Gets and sets the property ManagedBy.
/// <para>
/// If this is a managed rule, created by an Amazon Web Services service on your behalf,
/// this field displays the principal name of the Amazon Web Services service that created
/// the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string ManagedBy
{
get { return this._managedBy; }
set { this._managedBy = value; }
}
// Check to see if ManagedBy property is set
internal bool IsSetManagedBy()
{
return this._managedBy != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property RoleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the IAM role associated with the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
/// <summary>
/// Gets and sets the property ScheduleExpression.
/// <para>
/// The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
/// </para>
/// </summary>
[AWSProperty(Max=256)]
public string ScheduleExpression
{
get { return this._scheduleExpression; }
set { this._scheduleExpression = value; }
}
// Check to see if ScheduleExpression property is set
internal bool IsSetScheduleExpression()
{
return this._scheduleExpression != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// Specifies whether the rule is enabled or disabled.
/// </para>
/// </summary>
public RuleState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
} | 243 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the DisableRule operation.
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
public partial class DisableRuleRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private string _name;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 87 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the DisableRule operation.
/// </summary>
public partial class DisableRuleResponse : 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The custom parameters to be used when the target is an Amazon ECS task.
/// </summary>
public partial class EcsParameters
{
private List<CapacityProviderStrategyItem> _capacityProviderStrategy = new List<CapacityProviderStrategyItem>();
private bool? _enableECSManagedTags;
private bool? _enableExecuteCommand;
private string _group;
private LaunchType _launchType;
private NetworkConfiguration _networkConfiguration;
private List<PlacementConstraint> _placementConstraints = new List<PlacementConstraint>();
private List<PlacementStrategy> _placementStrategy = new List<PlacementStrategy>();
private string _platformVersion;
private PropagateTags _propagateTags;
private string _referenceId;
private List<Tag> _tags = new List<Tag>();
private int? _taskCount;
private string _taskDefinitionArn;
/// <summary>
/// Gets and sets the property CapacityProviderStrategy.
/// <para>
/// The capacity provider strategy to use for the task.
/// </para>
///
/// <para>
/// If a <code>capacityProviderStrategy</code> is specified, the <code>launchType</code>
/// parameter must be omitted. If no <code>capacityProviderStrategy</code> or launchType
/// is specified, the <code>defaultCapacityProviderStrategy</code> for the cluster is
/// used.
/// </para>
/// </summary>
[AWSProperty(Max=6)]
public List<CapacityProviderStrategyItem> CapacityProviderStrategy
{
get { return this._capacityProviderStrategy; }
set { this._capacityProviderStrategy = value; }
}
// Check to see if CapacityProviderStrategy property is set
internal bool IsSetCapacityProviderStrategy()
{
return this._capacityProviderStrategy != null && this._capacityProviderStrategy.Count > 0;
}
/// <summary>
/// Gets and sets the property EnableECSManagedTags.
/// <para>
/// Specifies whether to enable Amazon ECS managed tags for the task. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging
/// Your Amazon ECS Resources</a> in the Amazon Elastic Container Service Developer Guide.
///
/// </para>
/// </summary>
public bool EnableECSManagedTags
{
get { return this._enableECSManagedTags.GetValueOrDefault(); }
set { this._enableECSManagedTags = value; }
}
// Check to see if EnableECSManagedTags property is set
internal bool IsSetEnableECSManagedTags()
{
return this._enableECSManagedTags.HasValue;
}
/// <summary>
/// Gets and sets the property EnableExecuteCommand.
/// <para>
/// Whether or not to enable the execute command functionality for the containers in this
/// task. If true, this enables execute command functionality on all containers in the
/// task.
/// </para>
/// </summary>
public bool EnableExecuteCommand
{
get { return this._enableExecuteCommand.GetValueOrDefault(); }
set { this._enableExecuteCommand = value; }
}
// Check to see if EnableExecuteCommand property is set
internal bool IsSetEnableExecuteCommand()
{
return this._enableExecuteCommand.HasValue;
}
/// <summary>
/// Gets and sets the property Group.
/// <para>
/// Specifies an ECS task group for the task. The maximum length is 255 characters.
/// </para>
/// </summary>
public string Group
{
get { return this._group; }
set { this._group = value; }
}
// Check to see if Group property is set
internal bool IsSetGroup()
{
return this._group != null;
}
/// <summary>
/// Gets and sets the property LaunchType.
/// <para>
/// Specifies the launch type on which your task is running. The launch type that you
/// specify here must match one of the launch type (compatibilities) of the target task.
/// The <code>FARGATE</code> value is supported only in the Regions where Fargate witt
/// Amazon ECS is supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">Fargate
/// on Amazon ECS</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
/// </para>
/// </summary>
public LaunchType LaunchType
{
get { return this._launchType; }
set { this._launchType = value; }
}
// Check to see if LaunchType property is set
internal bool IsSetLaunchType()
{
return this._launchType != null;
}
/// <summary>
/// Gets and sets the property NetworkConfiguration.
/// <para>
/// Use this structure if the Amazon ECS task uses the <code>awsvpc</code> network mode.
/// This structure specifies the VPC subnets and security groups associated with the task,
/// and whether a public IP address is to be used. This structure is required if <code>LaunchType</code>
/// is <code>FARGATE</code> because the <code>awsvpc</code> mode is required for Fargate
/// tasks.
/// </para>
///
/// <para>
/// If you specify <code>NetworkConfiguration</code> when the target ECS task does not
/// use the <code>awsvpc</code> network mode, the task fails.
/// </para>
/// </summary>
public NetworkConfiguration NetworkConfiguration
{
get { return this._networkConfiguration; }
set { this._networkConfiguration = value; }
}
// Check to see if NetworkConfiguration property is set
internal bool IsSetNetworkConfiguration()
{
return this._networkConfiguration != null;
}
/// <summary>
/// Gets and sets the property PlacementConstraints.
/// <para>
/// An array of placement constraint objects to use for the task. You can specify up to
/// 10 constraints per task (including constraints in the task definition and those specified
/// at runtime).
/// </para>
/// </summary>
[AWSProperty(Max=10)]
public List<PlacementConstraint> PlacementConstraints
{
get { return this._placementConstraints; }
set { this._placementConstraints = value; }
}
// Check to see if PlacementConstraints property is set
internal bool IsSetPlacementConstraints()
{
return this._placementConstraints != null && this._placementConstraints.Count > 0;
}
/// <summary>
/// Gets and sets the property PlacementStrategy.
/// <para>
/// The placement strategy objects to use for the task. You can specify a maximum of five
/// strategy rules per task.
/// </para>
/// </summary>
[AWSProperty(Max=5)]
public List<PlacementStrategy> PlacementStrategy
{
get { return this._placementStrategy; }
set { this._placementStrategy = value; }
}
// Check to see if PlacementStrategy property is set
internal bool IsSetPlacementStrategy()
{
return this._placementStrategy != null && this._placementStrategy.Count > 0;
}
/// <summary>
/// Gets and sets the property PlatformVersion.
/// <para>
/// Specifies the platform version for the task. Specify only the numeric portion of the
/// platform version, such as <code>1.1.0</code>.
/// </para>
///
/// <para>
/// This structure is used only if <code>LaunchType</code> is <code>FARGATE</code>. For
/// more information about valid platform versions, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate
/// Platform Versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
/// </para>
/// </summary>
public string PlatformVersion
{
get { return this._platformVersion; }
set { this._platformVersion = value; }
}
// Check to see if PlatformVersion property is set
internal bool IsSetPlatformVersion()
{
return this._platformVersion != null;
}
/// <summary>
/// Gets and sets the property PropagateTags.
/// <para>
/// Specifies whether to propagate the tags from the task definition to the task. If no
/// value is specified, the tags are not propagated. Tags can only be propagated to the
/// task during task creation. To add tags to a task after task creation, use the TagResource
/// API action.
/// </para>
/// </summary>
public PropagateTags PropagateTags
{
get { return this._propagateTags; }
set { this._propagateTags = value; }
}
// Check to see if PropagateTags property is set
internal bool IsSetPropagateTags()
{
return this._propagateTags != null;
}
/// <summary>
/// Gets and sets the property ReferenceId.
/// <para>
/// The reference ID to use for the task.
/// </para>
/// </summary>
[AWSProperty(Max=1024)]
public string ReferenceId
{
get { return this._referenceId; }
set { this._referenceId = value; }
}
// Check to see if ReferenceId property is set
internal bool IsSetReferenceId()
{
return this._referenceId != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The metadata that you apply to the task to help you categorize and organize them.
/// Each tag consists of a key and an optional value, both of which you define. To learn
/// more, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-tags">RunTask</a>
/// in the Amazon ECS API Reference.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property TaskCount.
/// <para>
/// The number of tasks to create based on <code>TaskDefinition</code>. The default is
/// 1.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int TaskCount
{
get { return this._taskCount.GetValueOrDefault(); }
set { this._taskCount = value; }
}
// Check to see if TaskCount property is set
internal bool IsSetTaskCount()
{
return this._taskCount.HasValue;
}
/// <summary>
/// Gets and sets the property TaskDefinitionArn.
/// <para>
/// The ARN of the task definition to use if the event target is an Amazon ECS task.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string TaskDefinitionArn
{
get { return this._taskDefinitionArn; }
set { this._taskDefinitionArn = value; }
}
// Check to see if TaskDefinitionArn property is set
internal bool IsSetTaskDefinitionArn()
{
return this._taskDefinitionArn != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the EnableRule operation.
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
public partial class EnableRuleRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private string _name;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the EnableRule operation.
/// </summary>
public partial class EnableRuleResponse : 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// An event bus receives events from a source and routes them to rules associated with
/// that event bus. Your account's default event bus receives events from Amazon Web Services
/// services. A custom event bus can receive events from your custom applications and
/// services. A partner event bus receives events from an event source created by an SaaS
/// partner. These events come from the partners services or applications.
/// </summary>
public partial class EventBus
{
private string _arn;
private string _name;
private string _policy;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the event bus.
/// </para>
/// </summary>
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event bus.
/// </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 Policy.
/// <para>
/// The permissions policy of the event bus, describing which other Amazon Web Services
/// accounts can write events to this event bus.
/// </para>
/// </summary>
public string Policy
{
get { return this._policy; }
set { this._policy = value; }
}
// Check to see if Policy property is set
internal bool IsSetPolicy()
{
return this._policy != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// A partner event source is created by an SaaS partner. If a customer creates a partner
/// event bus that matches this event source, that Amazon Web Services account can receive
/// events from the partner's applications or services.
/// </summary>
public partial class EventSource
{
private string _arn;
private string _createdBy;
private DateTime? _creationTime;
private DateTime? _expirationTime;
private string _name;
private EventSourceState _state;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the event source.
/// </para>
/// </summary>
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedBy.
/// <para>
/// The name of the partner that created the event source.
/// </para>
/// </summary>
public string CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The date and time the event source was created.
/// </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 ExpirationTime.
/// <para>
/// The date and time that the event source will expire, if the Amazon Web Services account
/// doesn't create a matching event bus for it.
/// </para>
/// </summary>
public DateTime ExpirationTime
{
get { return this._expirationTime.GetValueOrDefault(); }
set { this._expirationTime = value; }
}
// Check to see if ExpirationTime property is set
internal bool IsSetExpirationTime()
{
return this._expirationTime.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event source.
/// </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 State.
/// <para>
/// The state of the event source. If it is ACTIVE, you have already created a matching
/// event bus for this event source, and that event bus is active. If it is PENDING, either
/// you haven't yet created a matching event bus, or that event bus is deactivated. If
/// it is DELETED, you have created a matching event bus, but the event source has since
/// been deleted.
/// </para>
/// </summary>
public EventSourceState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
} | 159 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// These are custom parameter to be used when the target is an API Gateway REST APIs
/// or EventBridge ApiDestinations. In the latter case, these are merged with any InvocationParameters
/// specified on the Connection, with any values from the Connection taking precedence.
/// </summary>
public partial class HttpParameters
{
private Dictionary<string, string> _headerParameters = new Dictionary<string, string>();
private List<string> _pathParameterValues = new List<string>();
private Dictionary<string, string> _queryStringParameters = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property HeaderParameters.
/// <para>
/// The headers that need to be sent as part of request invoking the API Gateway REST
/// API or EventBridge ApiDestination.
/// </para>
/// </summary>
public Dictionary<string, string> HeaderParameters
{
get { return this._headerParameters; }
set { this._headerParameters = value; }
}
// Check to see if HeaderParameters property is set
internal bool IsSetHeaderParameters()
{
return this._headerParameters != null && this._headerParameters.Count > 0;
}
/// <summary>
/// Gets and sets the property PathParameterValues.
/// <para>
/// The path parameter values to be used to populate API Gateway REST API or EventBridge
/// ApiDestination path wildcards ("*").
/// </para>
/// </summary>
public List<string> PathParameterValues
{
get { return this._pathParameterValues; }
set { this._pathParameterValues = value; }
}
// Check to see if PathParameterValues property is set
internal bool IsSetPathParameterValues()
{
return this._pathParameterValues != null && this._pathParameterValues.Count > 0;
}
/// <summary>
/// Gets and sets the property QueryStringParameters.
/// <para>
/// The query string keys/values that need to be sent as part of request invoking the
/// API Gateway REST API or EventBridge ApiDestination.
/// </para>
/// </summary>
public Dictionary<string, string> QueryStringParameters
{
get { return this._queryStringParameters; }
set { this._queryStringParameters = value; }
}
// Check to see if QueryStringParameters property is set
internal bool IsSetQueryStringParameters()
{
return this._queryStringParameters != null && this._queryStringParameters.Count > 0;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class IllegalStatusException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new IllegalStatusException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public IllegalStatusException(string message)
: base(message) {}
/// <summary>
/// Construct instance of IllegalStatusException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public IllegalStatusException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of IllegalStatusException
/// </summary>
/// <param name="innerException"></param>
public IllegalStatusException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of IllegalStatusException
/// </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 IllegalStatusException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of IllegalStatusException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public IllegalStatusException(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 IllegalStatusException 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 IllegalStatusException(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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Contains the parameters needed for you to provide custom input to a target based on
/// one or more pieces of data extracted from the event.
/// </summary>
public partial class InputTransformer
{
private Dictionary<string, string> _inputPathsMap = new Dictionary<string, string>();
private string _inputTemplate;
/// <summary>
/// Gets and sets the property InputPathsMap.
/// <para>
/// Map of JSON paths to be extracted from the event. You can then insert these in the
/// template in <code>InputTemplate</code> to produce the output you want to be sent to
/// the target.
/// </para>
///
/// <para>
/// <code>InputPathsMap</code> is an array key-value pairs, where each value is a valid
/// JSON path. You can have as many as 100 key-value pairs. You must use JSON dot notation,
/// not bracket notation.
/// </para>
///
/// <para>
/// The keys cannot start with "Amazon Web Services."
/// </para>
/// </summary>
[AWSProperty(Max=100)]
public Dictionary<string, string> InputPathsMap
{
get { return this._inputPathsMap; }
set { this._inputPathsMap = value; }
}
// Check to see if InputPathsMap property is set
internal bool IsSetInputPathsMap()
{
return this._inputPathsMap != null && this._inputPathsMap.Count > 0;
}
/// <summary>
/// Gets and sets the property InputTemplate.
/// <para>
/// Input template where you specify placeholders that will be filled with the values
/// of the keys from <code>InputPathsMap</code> to customize the data sent to the target.
/// Enclose each <code>InputPathsMaps</code> value in brackets: <<i>value</i>> The
/// InputTemplate must be valid JSON.
/// </para>
///
/// <para>
/// If <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the following
/// restrictions apply:
/// </para>
/// <ul> <li>
/// <para>
/// The placeholder cannot be used as an object key.
/// </para>
/// </li> </ul>
/// <para>
/// The following example shows the syntax for using <code>InputPathsMap</code> and <code>InputTemplate</code>.
/// </para>
///
/// <para>
/// <code> "InputTransformer":</code>
/// </para>
///
/// <para>
/// <code>{</code>
/// </para>
///
/// <para>
/// <code>"InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"},</code>
///
/// </para>
///
/// <para>
/// <code>"InputTemplate": "<instance> is in state <status>"</code>
/// </para>
///
/// <para>
/// <code>}</code>
/// </para>
///
/// <para>
/// To have the <code>InputTemplate</code> include quote marks within a JSON string, escape
/// each quote marks with a slash, as in the following example:
/// </para>
///
/// <para>
/// <code> "InputTransformer":</code>
/// </para>
///
/// <para>
/// <code>{</code>
/// </para>
///
/// <para>
/// <code>"InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"},</code>
///
/// </para>
///
/// <para>
/// <code>"InputTemplate": "<instance> is in state \"<status>\""</code>
/// </para>
///
/// <para>
/// <code>}</code>
/// </para>
///
/// <para>
/// The <code>InputTemplate</code> can also be valid JSON with varibles in quotes or out,
/// as in the following example:
/// </para>
///
/// <para>
/// <code> "InputTransformer":</code>
/// </para>
///
/// <para>
/// <code>{</code>
/// </para>
///
/// <para>
/// <code>"InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"},</code>
///
/// </para>
///
/// <para>
/// <code>"InputTemplate": '{"myInstance": <instance>,"myStatus": "<instance>
/// is in state \"<status>\""}'</code>
/// </para>
///
/// <para>
/// <code>}</code>
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=8192)]
public string InputTemplate
{
get { return this._inputTemplate; }
set { this._inputTemplate = value; }
}
// Check to see if InputTemplate property is set
internal bool IsSetInputTemplate()
{
return this._inputTemplate != null;
}
}
} | 181 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This exception occurs due to unexpected causes.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new InternalException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalException
/// </summary>
/// <param name="innerException"></param>
public InternalException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalException
/// </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 InternalException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalException(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 InternalException 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 InternalException(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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The event pattern is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidEventPatternException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new InvalidEventPatternException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidEventPatternException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidEventPatternException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidEventPatternException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidEventPatternException
/// </summary>
/// <param name="innerException"></param>
public InvalidEventPatternException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidEventPatternException
/// </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 InvalidEventPatternException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidEventPatternException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidEventPatternException(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 InvalidEventPatternException 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 InvalidEventPatternException(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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The specified state is not a valid state for an event source.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidStateException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new InvalidStateException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidStateException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidStateException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidStateException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidStateException
/// </summary>
/// <param name="innerException"></param>
public InvalidStateException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidStateException
/// </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 InvalidStateException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidStateException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidStateException(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 InvalidStateException 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 InvalidStateException(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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This object enables you to specify a JSON path to extract from the event and use as
/// the partition key for the Amazon Kinesis data stream, so that you can control the
/// shard to which the event goes. If you do not include this parameter, the default is
/// to use the <code>eventId</code> as the partition key.
/// </summary>
public partial class KinesisParameters
{
private string _partitionKeyPath;
/// <summary>
/// Gets and sets the property PartitionKeyPath.
/// <para>
/// The JSON path to be extracted from the event and used as the partition key. For more
/// information, see <a href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
/// Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=256)]
public string PartitionKeyPath
{
get { return this._partitionKeyPath; }
set { this._partitionKeyPath = value; }
}
// Check to see if PartitionKeyPath property is set
internal bool IsSetPartitionKeyPath()
{
return this._partitionKeyPath != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class LimitExceededException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new LimitExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public LimitExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public LimitExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="innerException"></param>
public LimitExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </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 LimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of LimitExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public LimitExceededException(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 LimitExceededException 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 LimitExceededException(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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListApiDestinations operation.
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
public partial class ListApiDestinationsRequest : AmazonCloudWatchEventsRequest
{
private string _connectionArn;
private int? _limit;
private string _namePrefix;
private string _nextToken;
/// <summary>
/// Gets and sets the property ConnectionArn.
/// <para>
/// The ARN of the connection specified for the API destination.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ConnectionArn
{
get { return this._connectionArn; }
set { this._connectionArn = value; }
}
// Check to see if ConnectionArn property is set
internal bool IsSetConnectionArn()
{
return this._connectionArn != null;
}
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// The maximum number of API destinations to include in the response.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NamePrefix.
/// <para>
/// A name prefix to filter results returned. Only API destinations with a name that starts
/// with the prefix are returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string NamePrefix
{
get { return this._namePrefix; }
set { this._namePrefix = value; }
}
// Check to see if NamePrefix property is set
internal bool IsSetNamePrefix()
{
return this._namePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 120 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListApiDestinations operation.
/// </summary>
public partial class ListApiDestinationsResponse : AmazonWebServiceResponse
{
private List<ApiDestination> _apiDestinations = new List<ApiDestination>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ApiDestinations.
/// <para>
/// An array of <code>ApiDestination</code> objects that include information about an
/// API destination.
/// </para>
/// </summary>
public List<ApiDestination> ApiDestinations
{
get { return this._apiDestinations; }
set { this._apiDestinations = value; }
}
// Check to see if ApiDestinations property is set
internal bool IsSetApiDestinations()
{
return this._apiDestinations != null && this._apiDestinations.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use in a subsequent request to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListArchives operation.
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
public partial class ListArchivesRequest : AmazonCloudWatchEventsRequest
{
private string _eventSourceArn;
private int? _limit;
private string _namePrefix;
private string _nextToken;
private ArchiveState _state;
/// <summary>
/// Gets and sets the property EventSourceArn.
/// <para>
/// The ARN of the event source associated with the archive.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventSourceArn
{
get { return this._eventSourceArn; }
set { this._eventSourceArn = value; }
}
// Check to see if EventSourceArn property is set
internal bool IsSetEventSourceArn()
{
return this._eventSourceArn != null;
}
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// The maximum number of results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NamePrefix.
/// <para>
/// A name prefix to filter the archives returned. Only archives with name that match
/// the prefix are returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=48)]
public string NamePrefix
{
get { return this._namePrefix; }
set { this._namePrefix = value; }
}
// Check to see if NamePrefix property is set
internal bool IsSetNamePrefix()
{
return this._namePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 State.
/// <para>
/// The state of the archive.
/// </para>
/// </summary>
public ArchiveState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
} | 140 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListArchives operation.
/// </summary>
public partial class ListArchivesResponse : AmazonWebServiceResponse
{
private List<Archive> _archives = new List<Archive>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Archives.
/// <para>
/// An array of <code>Archive</code> objects that include details about an archive.
/// </para>
/// </summary>
public List<Archive> Archives
{
get { return this._archives; }
set { this._archives = value; }
}
// Check to see if Archives property is set
internal bool IsSetArchives()
{
return this._archives != null && this._archives.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListConnections operation.
/// Retrieves a list of connections from the account.
/// </summary>
public partial class ListConnectionsRequest : AmazonCloudWatchEventsRequest
{
private ConnectionState _connectionState;
private int? _limit;
private string _namePrefix;
private string _nextToken;
/// <summary>
/// Gets and sets the property ConnectionState.
/// <para>
/// The state of the connection.
/// </para>
/// </summary>
public ConnectionState ConnectionState
{
get { return this._connectionState; }
set { this._connectionState = value; }
}
// Check to see if ConnectionState property is set
internal bool IsSetConnectionState()
{
return this._connectionState != null;
}
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// The maximum number of connections to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NamePrefix.
/// <para>
/// A name prefix to filter results returned. Only connections with a name that starts
/// with the prefix are returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string NamePrefix
{
get { return this._namePrefix; }
set { this._namePrefix = value; }
}
// Check to see if NamePrefix property is set
internal bool IsSetNamePrefix()
{
return this._namePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListConnections operation.
/// </summary>
public partial class ListConnectionsResponse : AmazonWebServiceResponse
{
private List<Connection> _connections = new List<Connection>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Connections.
/// <para>
/// An array of connections objects that include details about the connections.
/// </para>
/// </summary>
public List<Connection> Connections
{
get { return this._connections; }
set { this._connections = value; }
}
// Check to see if Connections property is set
internal bool IsSetConnections()
{
return this._connections != null && this._connections.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use in a subsequent request to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListEventBuses operation.
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
public partial class ListEventBusesRequest : AmazonCloudWatchEventsRequest
{
private int? _limit;
private string _namePrefix;
private string _nextToken;
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// Specifying this limits the number of results returned by this operation. The operation
/// also returns a NextToken which you can use in a subsequent operation to retrieve the
/// next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NamePrefix.
/// <para>
/// Specifying this limits the results to only those event buses with names that start
/// with the specified prefix.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string NamePrefix
{
get { return this._namePrefix; }
set { this._namePrefix = value; }
}
// Check to see if NamePrefix property is set
internal bool IsSetNamePrefix()
{
return this._namePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListEventBuses operation.
/// </summary>
public partial class ListEventBusesResponse : AmazonWebServiceResponse
{
private List<EventBus> _eventBuses = new List<EventBus>();
private string _nextToken;
/// <summary>
/// Gets and sets the property EventBuses.
/// <para>
/// This list of event buses.
/// </para>
/// </summary>
public List<EventBus> EventBuses
{
get { return this._eventBuses; }
set { this._eventBuses = value; }
}
// Check to see if EventBuses property is set
internal bool IsSetEventBuses()
{
return this._eventBuses != null && this._eventBuses.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use in a subsequent operation to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListEventSources operation.
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
public partial class ListEventSourcesRequest : AmazonCloudWatchEventsRequest
{
private int? _limit;
private string _namePrefix;
private string _nextToken;
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// Specifying this limits the number of results returned by this operation. The operation
/// also returns a NextToken which you can use in a subsequent operation to retrieve the
/// next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NamePrefix.
/// <para>
/// Specifying this limits the results to only those partner event sources with names
/// that start with the specified prefix.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string NamePrefix
{
get { return this._namePrefix; }
set { this._namePrefix = value; }
}
// Check to see if NamePrefix property is set
internal bool IsSetNamePrefix()
{
return this._namePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 104 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListEventSources operation.
/// </summary>
public partial class ListEventSourcesResponse : AmazonWebServiceResponse
{
private List<EventSource> _eventSources = new List<EventSource>();
private string _nextToken;
/// <summary>
/// Gets and sets the property EventSources.
/// <para>
/// The list of event sources.
/// </para>
/// </summary>
public List<EventSource> EventSources
{
get { return this._eventSources; }
set { this._eventSources = value; }
}
// Check to see if EventSources property is set
internal bool IsSetEventSources()
{
return this._eventSources != null && this._eventSources.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use in a subsequent operation to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListPartnerEventSourceAccounts operation.
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
public partial class ListPartnerEventSourceAccountsRequest : AmazonCloudWatchEventsRequest
{
private string _eventSourceName;
private int? _limit;
private string _nextToken;
/// <summary>
/// Gets and sets the property EventSourceName.
/// <para>
/// The name of the partner event source to display account information about.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string EventSourceName
{
get { return this._eventSourceName; }
set { this._eventSourceName = value; }
}
// Check to see if EventSourceName property is set
internal bool IsSetEventSourceName()
{
return this._eventSourceName != null;
}
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// Specifying this limits the number of results returned by this operation. The operation
/// also returns a NextToken which you can use in a subsequent operation to retrieve the
/// next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to this operation. Specifying this retrieves
/// the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 104 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListPartnerEventSourceAccounts operation.
/// </summary>
public partial class ListPartnerEventSourceAccountsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<PartnerEventSourceAccount> _partnerEventSourceAccounts = new List<PartnerEventSourceAccount>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use in a subsequent operation to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 PartnerEventSourceAccounts.
/// <para>
/// The list of partner event sources returned by the operation.
/// </para>
/// </summary>
public List<PartnerEventSourceAccount> PartnerEventSourceAccounts
{
get { return this._partnerEventSourceAccounts; }
set { this._partnerEventSourceAccounts = value; }
}
// Check to see if PartnerEventSourceAccounts property is set
internal bool IsSetPartnerEventSourceAccounts()
{
return this._partnerEventSourceAccounts != null && this._partnerEventSourceAccounts.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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListPartnerEventSources operation.
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
public partial class ListPartnerEventSourcesRequest : AmazonCloudWatchEventsRequest
{
private int? _limit;
private string _namePrefix;
private string _nextToken;
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// pecifying this limits the number of results returned by this operation. The operation
/// also returns a NextToken which you can use in a subsequent operation to retrieve the
/// next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NamePrefix.
/// <para>
/// If you specify this, the results are limited to only those partner event sources that
/// start with the string you specify.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string NamePrefix
{
get { return this._namePrefix; }
set { this._namePrefix = value; }
}
// Check to see if NamePrefix property is set
internal bool IsSetNamePrefix()
{
return this._namePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to this operation. Specifying this retrieves
/// the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 104 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListPartnerEventSources operation.
/// </summary>
public partial class ListPartnerEventSourcesResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<PartnerEventSource> _partnerEventSources = new List<PartnerEventSource>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token you can use in a subsequent operation to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 PartnerEventSources.
/// <para>
/// The list of partner event sources returned by the operation.
/// </para>
/// </summary>
public List<PartnerEventSource> PartnerEventSources
{
get { return this._partnerEventSources; }
set { this._partnerEventSources = value; }
}
// Check to see if PartnerEventSources property is set
internal bool IsSetPartnerEventSources()
{
return this._partnerEventSources != null && this._partnerEventSources.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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListReplays operation.
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
public partial class ListReplaysRequest : AmazonCloudWatchEventsRequest
{
private string _eventSourceArn;
private int? _limit;
private string _namePrefix;
private string _nextToken;
private ReplayState _state;
/// <summary>
/// Gets and sets the property EventSourceArn.
/// <para>
/// The ARN of the archive from which the events are replayed.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventSourceArn
{
get { return this._eventSourceArn; }
set { this._eventSourceArn = value; }
}
// Check to see if EventSourceArn property is set
internal bool IsSetEventSourceArn()
{
return this._eventSourceArn != null;
}
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// The maximum number of replays to retrieve.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NamePrefix.
/// <para>
/// A name prefix to filter the replays returned. Only replays with name that match the
/// prefix are returned.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string NamePrefix
{
get { return this._namePrefix; }
set { this._namePrefix = value; }
}
// Check to see if NamePrefix property is set
internal bool IsSetNamePrefix()
{
return this._namePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 State.
/// <para>
/// The state of the replay.
/// </para>
/// </summary>
public ReplayState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
} | 140 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListReplays operation.
/// </summary>
public partial class ListReplaysResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<Replay> _replays = new List<Replay>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 Replays.
/// <para>
/// An array of <code>Replay</code> objects that contain information about the replay.
/// </para>
/// </summary>
public List<Replay> Replays
{
get { return this._replays; }
set { this._replays = value; }
}
// Check to see if Replays property is set
internal bool IsSetReplays()
{
return this._replays != null && this._replays.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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListRuleNamesByTarget operation.
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
public partial class ListRuleNamesByTargetRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private int? _limit;
private string _nextToken;
private string _targetArn;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus to list rules for. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// The maximum number of results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 TargetArn.
/// <para>
/// The Amazon Resource Name (ARN) of the target resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string TargetArn
{
get { return this._targetArn; }
set { this._targetArn = value; }
}
// Check to see if TargetArn property is set
internal bool IsSetTargetArn()
{
return this._targetArn != null;
}
}
} | 121 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListRuleNamesByTarget operation.
/// </summary>
public partial class ListRuleNamesByTargetResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<string> _ruleNames = new List<string>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Indicates whether there are additional results to retrieve. If there are no more results,
/// the value is null.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 RuleNames.
/// <para>
/// The names of the rules that can invoke the given target.
/// </para>
/// </summary>
public List<string> RuleNames
{
get { return this._ruleNames; }
set { this._ruleNames = value; }
}
// Check to see if RuleNames property is set
internal bool IsSetRuleNames()
{
return this._ruleNames != null && this._ruleNames.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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListRules operation.
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
public partial class ListRulesRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private int? _limit;
private string _namePrefix;
private string _nextToken;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus to list the rules for. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// The maximum number of results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NamePrefix.
/// <para>
/// The prefix matching the rule name.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string NamePrefix
{
get { return this._namePrefix; }
set { this._namePrefix = value; }
}
// Check to see if NamePrefix property is set
internal bool IsSetNamePrefix()
{
return this._namePrefix != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 127 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListRules operation.
/// </summary>
public partial class ListRulesResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<Rule> _rules = new List<Rule>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Indicates whether there are additional results to retrieve. If there are no more results,
/// the value is null.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 Rules.
/// <para>
/// The rules that match the specified criteria.
/// </para>
/// </summary>
public List<Rule> Rules
{
get { return this._rules; }
set { this._rules = value; }
}
// Check to see if Rules property is set
internal bool IsSetRules()
{
return this._rules != null && this._rules.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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListTagsForResource operation.
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
public partial class ListTagsForResourceRequest : AmazonCloudWatchEventsRequest
{
private string _resourceARN;
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The ARN of the EventBridge resource for which you want to view tags.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
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;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The list of tag keys and values associated with the resource you specified
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 57 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the ListTargetsByRule operation.
/// Lists the targets assigned to the specified rule.
/// </summary>
public partial class ListTargetsByRuleRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private int? _limit;
private string _nextToken;
private string _rule;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Limit.
/// <para>
/// The maximum number of results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token returned by a previous call to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 Rule.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Rule
{
get { return this._rule; }
set { this._rule = value; }
}
// Check to see if Rule property is set
internal bool IsSetRule()
{
return this._rule != null;
}
}
} | 120 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the ListTargetsByRule operation.
/// </summary>
public partial class ListTargetsByRuleResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<Target> _targets = new List<Target>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// Indicates whether there are additional results to retrieve. If there are no more results,
/// the value is null.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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 Targets.
/// <para>
/// The targets assigned to the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public List<Target> Targets
{
get { return this._targets; }
set { this._targets = value; }
}
// Check to see if Targets property is set
internal bool IsSetTargets()
{
return this._targets != null && this._targets.Count > 0;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ManagedRuleException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new ManagedRuleException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ManagedRuleException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ManagedRuleException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ManagedRuleException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ManagedRuleException
/// </summary>
/// <param name="innerException"></param>
public ManagedRuleException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ManagedRuleException
/// </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 ManagedRuleException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ManagedRuleException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ManagedRuleException(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 ManagedRuleException 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 ManagedRuleException(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
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This structure specifies the network configuration for an ECS task.
/// </summary>
public partial class NetworkConfiguration
{
private AwsVpcConfiguration _awsvpcConfiguration;
/// <summary>
/// Gets and sets the property AwsvpcConfiguration.
/// <para>
/// Use this structure to specify the VPC subnets and security groups for the task, and
/// whether a public IP address is to be used. This structure is relevant only for ECS
/// tasks that use the <code>awsvpc</code> network mode.
/// </para>
/// </summary>
public AwsVpcConfiguration AwsvpcConfiguration
{
get { return this._awsvpcConfiguration; }
set { this._awsvpcConfiguration = value; }
}
// Check to see if AwsvpcConfiguration property is set
internal bool IsSetAwsvpcConfiguration()
{
return this._awsvpcConfiguration != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The operation you are attempting is not available in this region.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class OperationDisabledException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new OperationDisabledException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public OperationDisabledException(string message)
: base(message) {}
/// <summary>
/// Construct instance of OperationDisabledException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public OperationDisabledException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of OperationDisabledException
/// </summary>
/// <param name="innerException"></param>
public OperationDisabledException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of OperationDisabledException
/// </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 OperationDisabledException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of OperationDisabledException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public OperationDisabledException(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 OperationDisabledException 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 OperationDisabledException(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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// A partner event source is created by an SaaS partner. If a customer creates a partner
/// event bus that matches this event source, that Amazon Web Services account can receive
/// events from the partner's applications or services.
/// </summary>
public partial class PartnerEventSource
{
private string _arn;
private string _name;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the partner event source.
/// </para>
/// </summary>
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the partner event source.
/// </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;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The Amazon Web Services account that a partner event source has been offered to.
/// </summary>
public partial class PartnerEventSourceAccount
{
private string _account;
private DateTime? _creationTime;
private DateTime? _expirationTime;
private EventSourceState _state;
/// <summary>
/// Gets and sets the property Account.
/// <para>
/// The Amazon Web Services account ID that the partner event source was offered to.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string Account
{
get { return this._account; }
set { this._account = value; }
}
// Check to see if Account property is set
internal bool IsSetAccount()
{
return this._account != null;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The date and time the event source was created.
/// </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 ExpirationTime.
/// <para>
/// The date and time that the event source will expire, if the Amazon Web Services account
/// doesn't create a matching event bus for it.
/// </para>
/// </summary>
public DateTime ExpirationTime
{
get { return this._expirationTime.GetValueOrDefault(); }
set { this._expirationTime = value; }
}
// Check to see if ExpirationTime property is set
internal bool IsSetExpirationTime()
{
return this._expirationTime.HasValue;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the event source. If it is ACTIVE, you have already created a matching
/// event bus for this event source, and that event bus is active. If it is PENDING, either
/// you haven't yet created a matching event bus, or that event bus is deactivated. If
/// it is DELETED, you have created a matching event bus, but the event source has since
/// been deleted.
/// </para>
/// </summary>
public EventSourceState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
} | 120 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// An object representing a constraint on task placement. To learn more, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html">Task
/// Placement Constraints</a> in the Amazon Elastic Container Service Developer Guide.
/// </summary>
public partial class PlacementConstraint
{
private string _expression;
private PlacementConstraintType _type;
/// <summary>
/// Gets and sets the property Expression.
/// <para>
/// A cluster query language expression to apply to the constraint. You cannot specify
/// an expression if the constraint type is <code>distinctInstance</code>. To learn more,
/// see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html">Cluster
/// Query Language</a> in the Amazon Elastic Container Service Developer Guide.
/// </para>
/// </summary>
[AWSProperty(Max=2000)]
public string Expression
{
get { return this._expression; }
set { this._expression = value; }
}
// Check to see if Expression property is set
internal bool IsSetExpression()
{
return this._expression != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of constraint. Use distinctInstance to ensure that each task in a particular
/// group is running on a different container instance. Use memberOf to restrict the selection
/// to a group of valid candidates.
/// </para>
/// </summary>
public PlacementConstraintType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The task placement strategy for a task or service. To learn more, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html">Task
/// Placement Strategies</a> in the Amazon Elastic Container Service Service Developer
/// Guide.
/// </summary>
public partial class PlacementStrategy
{
private string _field;
private PlacementStrategyType _type;
/// <summary>
/// Gets and sets the property Field.
/// <para>
/// The field to apply the placement strategy against. For the spread placement strategy,
/// valid values are instanceId (or host, which has the same effect), or any platform
/// or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone.
/// For the binpack placement strategy, valid values are cpu and memory. For the random
/// placement strategy, this field is not used.
/// </para>
/// </summary>
[AWSProperty(Max=255)]
public string Field
{
get { return this._field; }
set { this._field = value; }
}
// Check to see if Field property is set
internal bool IsSetField()
{
return this._field != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of placement strategy. The random placement strategy randomly places tasks
/// on available candidates. The spread placement strategy spreads placement across available
/// candidates evenly based on the field parameter. The binpack strategy places tasks
/// on available candidates that have the least available amount of the resource that
/// is specified with the field parameter. For example, if you binpack on memory, a task
/// is placed on the instance with the least amount of remaining memory (but still enough
/// to run the task).
/// </para>
/// </summary>
public PlacementStrategyType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 89 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The event bus policy is too long. For more information, see the limits.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class PolicyLengthExceededException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new PolicyLengthExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public PolicyLengthExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of PolicyLengthExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public PolicyLengthExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of PolicyLengthExceededException
/// </summary>
/// <param name="innerException"></param>
public PolicyLengthExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of PolicyLengthExceededException
/// </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 PolicyLengthExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of PolicyLengthExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public PolicyLengthExceededException(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 PolicyLengthExceededException 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 PolicyLengthExceededException(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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the PutEvents operation.
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
public partial class PutEventsRequest : AmazonCloudWatchEventsRequest
{
private List<PutEventsRequestEntry> _entries = new List<PutEventsRequestEntry>();
/// <summary>
/// Gets and sets the property Entries.
/// <para>
/// The entry that defines an event in your system. You can specify several parameters
/// for the entry such as the source and type of the event, resources associated with
/// the event, and so on.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=10)]
public List<PutEventsRequestEntry> Entries
{
get { return this._entries; }
set { this._entries = value; }
}
// Check to see if Entries property is set
internal bool IsSetEntries()
{
return this._entries != null && this._entries.Count > 0;
}
}
} | 61 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Represents an event to be submitted.
/// </summary>
public partial class PutEventsRequestEntry
{
private string _detail;
private string _detailType;
private string _eventBusName;
private List<string> _resources = new List<string>();
private string _source;
private DateTime? _time;
private string _traceHeader;
/// <summary>
/// Gets and sets the property Detail.
/// <para>
/// A valid JSON string. There is no other schema imposed. The JSON string may contain
/// fields and nested subobjects.
/// </para>
/// </summary>
public string Detail
{
get { return this._detail; }
set { this._detail = value; }
}
// Check to see if Detail property is set
internal bool IsSetDetail()
{
return this._detail != null;
}
/// <summary>
/// Gets and sets the property DetailType.
/// <para>
/// Free-form string used to decide what fields to expect in the event detail.
/// </para>
/// </summary>
public string DetailType
{
get { return this._detailType; }
set { this._detailType = value; }
}
// Check to see if DetailType property is set
internal bool IsSetDetailType()
{
return this._detailType != null;
}
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus to receive the event. Only the rules that are associated
/// with this event bus are used to match the event. If you omit this, the default event
/// bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Resources.
/// <para>
/// Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the
/// event primarily concerns. Any number, including zero, may be present.
/// </para>
/// </summary>
public List<string> Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null && this._resources.Count > 0;
}
/// <summary>
/// Gets and sets the property Source.
/// <para>
/// The source of the event.
/// </para>
/// </summary>
public string Source
{
get { return this._source; }
set { this._source = value; }
}
// Check to see if Source property is set
internal bool IsSetSource()
{
return this._source != null;
}
/// <summary>
/// Gets and sets the property Time.
/// <para>
/// The time stamp of the event, per <a href="https://www.rfc-editor.org/rfc/rfc3339.txt">RFC3339</a>.
/// If no time stamp is provided, the time stamp of the <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html">PutEvents</a>
/// call is used.
/// </para>
/// </summary>
public DateTime Time
{
get { return this._time.GetValueOrDefault(); }
set { this._time = value; }
}
// Check to see if Time property is set
internal bool IsSetTime()
{
return this._time.HasValue;
}
/// <summary>
/// Gets and sets the property TraceHeader.
/// <para>
/// An X-Ray trade header, which is an http header (X-Amzn-Trace-Id) that contains the
/// trace-id associated with the event.
/// </para>
///
/// <para>
/// To learn more about X-Ray trace headers, see <a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader">Tracing
/// header</a> in the X-Ray Developer Guide.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=500)]
public string TraceHeader
{
get { return this._traceHeader; }
set { this._traceHeader = value; }
}
// Check to see if TraceHeader property is set
internal bool IsSetTraceHeader()
{
return this._traceHeader != null;
}
}
} | 185 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the PutEvents operation.
/// </summary>
public partial class PutEventsResponse : AmazonWebServiceResponse
{
private List<PutEventsResultEntry> _entries = new List<PutEventsResultEntry>();
private int? _failedEntryCount;
/// <summary>
/// Gets and sets the property Entries.
/// <para>
/// The successfully and unsuccessfully ingested events results. If the ingestion was
/// successful, the entry has the event ID in it. Otherwise, you can use the error code
/// and error message to identify the problem with the entry.
/// </para>
/// </summary>
public List<PutEventsResultEntry> Entries
{
get { return this._entries; }
set { this._entries = value; }
}
// Check to see if Entries property is set
internal bool IsSetEntries()
{
return this._entries != null && this._entries.Count > 0;
}
/// <summary>
/// Gets and sets the property FailedEntryCount.
/// <para>
/// The number of failed entries.
/// </para>
/// </summary>
public int FailedEntryCount
{
get { return this._failedEntryCount.GetValueOrDefault(); }
set { this._failedEntryCount = value; }
}
// Check to see if FailedEntryCount property is set
internal bool IsSetFailedEntryCount()
{
return this._failedEntryCount.HasValue;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Represents an event that failed to be submitted.
/// </summary>
public partial class PutEventsResultEntry
{
private string _errorCode;
private string _errorMessage;
private string _eventId;
/// <summary>
/// Gets and sets the property ErrorCode.
/// <para>
/// The error code that indicates why the event submission failed.
/// </para>
/// </summary>
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
/// <summary>
/// Gets and sets the property ErrorMessage.
/// <para>
/// The error message that explains why the event submission failed.
/// </para>
/// </summary>
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
/// <summary>
/// Gets and sets the property EventId.
/// <para>
/// The ID of the event.
/// </para>
/// </summary>
public string EventId
{
get { return this._eventId; }
set { this._eventId = value; }
}
// Check to see if EventId property is set
internal bool IsSetEventId()
{
return this._eventId != null;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the PutPartnerEvents operation.
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
public partial class PutPartnerEventsRequest : AmazonCloudWatchEventsRequest
{
private List<PutPartnerEventsRequestEntry> _entries = new List<PutPartnerEventsRequestEntry>();
/// <summary>
/// Gets and sets the property Entries.
/// <para>
/// The list of events to write to the event bus.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=20)]
public List<PutPartnerEventsRequestEntry> Entries
{
get { return this._entries; }
set { this._entries = value; }
}
// Check to see if Entries property is set
internal bool IsSetEntries()
{
return this._entries != null && this._entries.Count > 0;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The details about an event generated by an SaaS partner.
/// </summary>
public partial class PutPartnerEventsRequestEntry
{
private string _detail;
private string _detailType;
private List<string> _resources = new List<string>();
private string _source;
private DateTime? _time;
/// <summary>
/// Gets and sets the property Detail.
/// <para>
/// A valid JSON string. There is no other schema imposed. The JSON string may contain
/// fields and nested subobjects.
/// </para>
/// </summary>
public string Detail
{
get { return this._detail; }
set { this._detail = value; }
}
// Check to see if Detail property is set
internal bool IsSetDetail()
{
return this._detail != null;
}
/// <summary>
/// Gets and sets the property DetailType.
/// <para>
/// A free-form string used to decide what fields to expect in the event detail.
/// </para>
/// </summary>
public string DetailType
{
get { return this._detailType; }
set { this._detailType = value; }
}
// Check to see if DetailType property is set
internal bool IsSetDetailType()
{
return this._detailType != null;
}
/// <summary>
/// Gets and sets the property Resources.
/// <para>
/// Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the
/// event primarily concerns. Any number, including zero, may be present.
/// </para>
/// </summary>
public List<string> Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null && this._resources.Count > 0;
}
/// <summary>
/// Gets and sets the property Source.
/// <para>
/// The event source that is generating the entry.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string Source
{
get { return this._source; }
set { this._source = value; }
}
// Check to see if Source property is set
internal bool IsSetSource()
{
return this._source != null;
}
/// <summary>
/// Gets and sets the property Time.
/// <para>
/// The date and time of the event.
/// </para>
/// </summary>
public DateTime Time
{
get { return this._time.GetValueOrDefault(); }
set { this._time = value; }
}
// Check to see if Time property is set
internal bool IsSetTime()
{
return this._time.HasValue;
}
}
} | 136 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the PutPartnerEvents operation.
/// </summary>
public partial class PutPartnerEventsResponse : AmazonWebServiceResponse
{
private List<PutPartnerEventsResultEntry> _entries = new List<PutPartnerEventsResultEntry>();
private int? _failedEntryCount;
/// <summary>
/// Gets and sets the property Entries.
/// <para>
/// The list of events from this operation that were successfully written to the partner
/// event bus.
/// </para>
/// </summary>
public List<PutPartnerEventsResultEntry> Entries
{
get { return this._entries; }
set { this._entries = value; }
}
// Check to see if Entries property is set
internal bool IsSetEntries()
{
return this._entries != null && this._entries.Count > 0;
}
/// <summary>
/// Gets and sets the property FailedEntryCount.
/// <para>
/// The number of events from this operation that could not be written to the partner
/// event bus.
/// </para>
/// </summary>
public int FailedEntryCount
{
get { return this._failedEntryCount.GetValueOrDefault(); }
set { this._failedEntryCount = value; }
}
// Check to see if FailedEntryCount property is set
internal bool IsSetFailedEntryCount()
{
return this._failedEntryCount.HasValue;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Represents an event that a partner tried to generate, but failed.
/// </summary>
public partial class PutPartnerEventsResultEntry
{
private string _errorCode;
private string _errorMessage;
private string _eventId;
/// <summary>
/// Gets and sets the property ErrorCode.
/// <para>
/// The error code that indicates why the event submission failed.
/// </para>
/// </summary>
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
/// <summary>
/// Gets and sets the property ErrorMessage.
/// <para>
/// The error message that explains why the event submission failed.
/// </para>
/// </summary>
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
/// <summary>
/// Gets and sets the property EventId.
/// <para>
/// The ID of the event.
/// </para>
/// </summary>
public string EventId
{
get { return this._eventId; }
set { this._eventId = value; }
}
// Check to see if EventId property is set
internal bool IsSetEventId()
{
return this._eventId != null;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the PutPermission operation.
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
public partial class PutPermissionRequest : AmazonCloudWatchEventsRequest
{
private string _action;
private Condition _condition;
private string _eventBusName;
private string _policy;
private string _principal;
private string _statementId;
/// <summary>
/// Gets and sets the property Action.
/// <para>
/// The action that you are enabling the other account to perform.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string Action
{
get { return this._action; }
set { this._action = value; }
}
// Check to see if Action property is set
internal bool IsSetAction()
{
return this._action != null;
}
/// <summary>
/// Gets and sets the property Condition.
/// <para>
/// This parameter enables you to limit the permission to accounts that fulfill a certain
/// condition, such as being a member of a certain Amazon Web Services organization. For
/// more information about Amazon Web Services Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">What
/// Is Amazon Web Services Organizations</a> in the <i>Amazon Web Services Organizations
/// User Guide</i>.
/// </para>
///
/// <para>
/// If you specify <code>Condition</code> with an Amazon Web Services organization ID,
/// and specify "*" as the value for <code>Principal</code>, you grant permission to all
/// the accounts in the named organization.
/// </para>
///
/// <para>
/// The <code>Condition</code> is a JSON string which must contain <code>Type</code>,
/// <code>Key</code>, and <code>Value</code> fields.
/// </para>
/// </summary>
public Condition Condition
{
get { return this._condition; }
set { this._condition = value; }
}
// Check to see if Condition property is set
internal bool IsSetCondition()
{
return this._condition != null;
}
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Policy.
/// <para>
/// A JSON string that describes the permission policy statement. You can include a <code>Policy</code>
/// parameter in the request instead of using the <code>StatementId</code>, <code>Action</code>,
/// <code>Principal</code>, or <code>Condition</code> parameters.
/// </para>
/// </summary>
public string Policy
{
get { return this._policy; }
set { this._policy = value; }
}
// Check to see if Policy property is set
internal bool IsSetPolicy()
{
return this._policy != null;
}
/// <summary>
/// Gets and sets the property Principal.
/// <para>
/// The 12-digit Amazon Web Services account ID that you are permitting to put events
/// to your default event bus. Specify "*" to permit any account to put events to your
/// default event bus.
/// </para>
///
/// <para>
/// If you specify "*" without specifying <code>Condition</code>, avoid creating rules
/// that may match undesirable events. To create more secure rules, make sure that the
/// event pattern for each rule contains an <code>account</code> field with a specific
/// account ID from which to receive events. Rules with an account field do not match
/// any events sent from other accounts.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=12)]
public string Principal
{
get { return this._principal; }
set { this._principal = value; }
}
// Check to see if Principal property is set
internal bool IsSetPrincipal()
{
return this._principal != null;
}
/// <summary>
/// Gets and sets the property StatementId.
/// <para>
/// An identifier string for the external account that you are granting permissions to.
/// If you later want to revoke the permission for this external account, specify this
/// <code>StatementId</code> when you run <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemovePermission.html">RemovePermission</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string StatementId
{
get { return this._statementId; }
set { this._statementId = value; }
}
// Check to see if StatementId property is set
internal bool IsSetStatementId()
{
return this._statementId != null;
}
}
} | 217 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the PutPermission operation.
/// </summary>
public partial class PutPermissionResponse : 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the PutRule operation.
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
public partial class PutRuleRequest : AmazonCloudWatchEventsRequest
{
private string _description;
private string _eventBusName;
private string _eventPattern;
private string _name;
private string _roleArn;
private string _scheduleExpression;
private RuleState _state;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A description of the rule.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus to associate with this rule. If you omit this, the
/// default event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property EventPattern.
/// <para>
/// The event pattern. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
/// and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
/// </summary>
public string EventPattern
{
get { return this._eventPattern; }
set { this._eventPattern = value; }
}
// Check to see if EventPattern property is set
internal bool IsSetEventPattern()
{
return this._eventPattern != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the rule that you are creating or updating.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property RoleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the IAM role associated with the rule.
/// </para>
///
/// <para>
/// If you're setting an event bus in another account as the target and that account granted
/// permission to your account through an organization instead of directly by the account
/// ID, you must specify a <code>RoleArn</code> with proper permissions in the <code>Target</code>
/// structure, instead of here in this parameter.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
/// <summary>
/// Gets and sets the property ScheduleExpression.
/// <para>
/// The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
/// </para>
/// </summary>
[AWSProperty(Max=256)]
public string ScheduleExpression
{
get { return this._scheduleExpression; }
set { this._scheduleExpression = value; }
}
// Check to see if ScheduleExpression property is set
internal bool IsSetScheduleExpression()
{
return this._scheduleExpression != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// Indicates whether the rule is enabled or disabled.
/// </para>
/// </summary>
public RuleState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The list of key-value pairs to associate with the rule.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 278 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the PutRule operation.
/// </summary>
public partial class PutRuleResponse : AmazonWebServiceResponse
{
private string _ruleArn;
/// <summary>
/// Gets and sets the property RuleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string RuleArn
{
get { return this._ruleArn; }
set { this._ruleArn = value; }
}
// Check to see if RuleArn property is set
internal bool IsSetRuleArn()
{
return this._ruleArn != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the PutTargets operation.
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
public partial class PutTargetsRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private string _rule;
private List<Target> _targets = new List<Target>();
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Rule.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Rule
{
get { return this._rule; }
set { this._rule = value; }
}
// Check to see if Rule property is set
internal bool IsSetRule()
{
return this._rule != null;
}
/// <summary>
/// Gets and sets the property Targets.
/// <para>
/// The targets to update or add to the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=100)]
public List<Target> Targets
{
get { return this._targets; }
set { this._targets = value; }
}
// Check to see if Targets property is set
internal bool IsSetTargets()
{
return this._targets != null && this._targets.Count > 0;
}
}
} | 313 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the PutTargets operation.
/// </summary>
public partial class PutTargetsResponse : AmazonWebServiceResponse
{
private List<PutTargetsResultEntry> _failedEntries = new List<PutTargetsResultEntry>();
/// <summary>
/// Gets and sets the property FailedEntries.
/// <para>
/// The failed target entries.
/// </para>
/// </summary>
public List<PutTargetsResultEntry> FailedEntries
{
get { return this._failedEntries; }
set { this._failedEntries = value; }
}
// Check to see if FailedEntries property is set
internal bool IsSetFailedEntries()
{
return this._failedEntries != null && this._failedEntries.Count > 0;
}
}
} | 57 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Represents a target that failed to be added to a rule.
/// </summary>
public partial class PutTargetsResultEntry
{
private string _errorCode;
private string _errorMessage;
private string _targetId;
/// <summary>
/// Gets and sets the property ErrorCode.
/// <para>
/// The error code that indicates why the target addition failed. If the value is <code>ConcurrentModificationException</code>,
/// too many requests were made at the same time.
/// </para>
/// </summary>
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
/// <summary>
/// Gets and sets the property ErrorMessage.
/// <para>
/// The error message that explains why the target addition failed.
/// </para>
/// </summary>
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
/// <summary>
/// Gets and sets the property TargetId.
/// <para>
/// The ID of the target.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string TargetId
{
get { return this._targetId; }
set { this._targetId = value; }
}
// Check to see if TargetId property is set
internal bool IsSetTargetId()
{
return this._targetId != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// These are custom parameters to be used when the target is a Amazon Redshift cluster
/// to invoke the Amazon Redshift Data API ExecuteStatement based on EventBridge events.
/// </summary>
public partial class RedshiftDataParameters
{
private string _database;
private string _dbUser;
private string _secretManagerArn;
private string _sql;
private string _statementName;
private bool? _withEvent;
/// <summary>
/// Gets and sets the property Database.
/// <para>
/// The name of the database. Required when authenticating using temporary credentials.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Database
{
get { return this._database; }
set { this._database = value; }
}
// Check to see if Database property is set
internal bool IsSetDatabase()
{
return this._database != null;
}
/// <summary>
/// Gets and sets the property DbUser.
/// <para>
/// The database user name. Required when authenticating using temporary credentials.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string DbUser
{
get { return this._dbUser; }
set { this._dbUser = value; }
}
// Check to see if DbUser property is set
internal bool IsSetDbUser()
{
return this._dbUser != null;
}
/// <summary>
/// Gets and sets the property SecretManagerArn.
/// <para>
/// The name or ARN of the secret that enables access to the database. Required when authenticating
/// using Amazon Web Services Secrets Manager.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string SecretManagerArn
{
get { return this._secretManagerArn; }
set { this._secretManagerArn = value; }
}
// Check to see if SecretManagerArn property is set
internal bool IsSetSecretManagerArn()
{
return this._secretManagerArn != null;
}
/// <summary>
/// Gets and sets the property Sql.
/// <para>
/// The SQL statement text to run.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=100000)]
public string Sql
{
get { return this._sql; }
set { this._sql = value; }
}
// Check to see if Sql property is set
internal bool IsSetSql()
{
return this._sql != null;
}
/// <summary>
/// Gets and sets the property StatementName.
/// <para>
/// The name of the SQL statement. You can name the SQL statement when you create it to
/// identify the query.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=500)]
public string StatementName
{
get { return this._statementName; }
set { this._statementName = value; }
}
// Check to see if StatementName property is set
internal bool IsSetStatementName()
{
return this._statementName != null;
}
/// <summary>
/// Gets and sets the property WithEvent.
/// <para>
/// Indicates whether to send an event back to EventBridge after the SQL statement runs.
/// </para>
/// </summary>
public bool WithEvent
{
get { return this._withEvent.GetValueOrDefault(); }
set { this._withEvent = value; }
}
// Check to see if WithEvent property is set
internal bool IsSetWithEvent()
{
return this._withEvent.HasValue;
}
}
} | 160 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the RemovePermission operation.
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
public partial class RemovePermissionRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private bool? _removeAllPermissions;
private string _statementId;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name of the event bus to revoke permissions for. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property RemoveAllPermissions.
/// <para>
/// Specifies whether to remove all permissions.
/// </para>
/// </summary>
public bool RemoveAllPermissions
{
get { return this._removeAllPermissions.GetValueOrDefault(); }
set { this._removeAllPermissions = value; }
}
// Check to see if RemoveAllPermissions property is set
internal bool IsSetRemoveAllPermissions()
{
return this._removeAllPermissions.HasValue;
}
/// <summary>
/// Gets and sets the property StatementId.
/// <para>
/// The statement ID corresponding to the account that is no longer allowed to put events
/// to the default event bus.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string StatementId
{
get { return this._statementId; }
set { this._statementId = value; }
}
// Check to see if StatementId property is set
internal bool IsSetStatementId()
{
return this._statementId != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the RemovePermission operation.
/// </summary>
public partial class RemovePermissionResponse : 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Container for the parameters to the RemoveTargets operation.
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
public partial class RemoveTargetsRequest : AmazonCloudWatchEventsRequest
{
private string _eventBusName;
private bool? _force;
private List<string> _ids = new List<string>();
private string _rule;
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property Force.
/// <para>
/// If this is a managed rule, created by an Amazon Web Services service on your behalf,
/// you must specify <code>Force</code> as <code>True</code> to remove targets. This parameter
/// is ignored for rules that are not managed rules. You can check whether a rule is a
/// managed rule by using <code>DescribeRule</code> or <code>ListRules</code> and checking
/// the <code>ManagedBy</code> field of the response.
/// </para>
/// </summary>
public bool Force
{
get { return this._force.GetValueOrDefault(); }
set { this._force = value; }
}
// Check to see if Force property is set
internal bool IsSetForce()
{
return this._force.HasValue;
}
/// <summary>
/// Gets and sets the property Ids.
/// <para>
/// The IDs of the targets to remove from the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=100)]
public List<string> Ids
{
get { return this._ids; }
set { this._ids = value; }
}
// Check to see if Ids property is set
internal bool IsSetIds()
{
return this._ids != null && this._ids.Count > 0;
}
/// <summary>
/// Gets and sets the property Rule.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Rule
{
get { return this._rule; }
set { this._rule = value; }
}
// Check to see if Rule property is set
internal bool IsSetRule()
{
return this._rule != null;
}
}
} | 136 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This is the response object from the RemoveTargets operation.
/// </summary>
public partial class RemoveTargetsResponse : AmazonWebServiceResponse
{
private List<RemoveTargetsResultEntry> _failedEntries = new List<RemoveTargetsResultEntry>();
/// <summary>
/// Gets and sets the property FailedEntries.
/// <para>
/// The failed target entries.
/// </para>
/// </summary>
public List<RemoveTargetsResultEntry> FailedEntries
{
get { return this._failedEntries; }
set { this._failedEntries = value; }
}
// Check to see if FailedEntries property is set
internal bool IsSetFailedEntries()
{
return this._failedEntries != null && this._failedEntries.Count > 0;
}
}
} | 57 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Represents a target that failed to be removed from a rule.
/// </summary>
public partial class RemoveTargetsResultEntry
{
private string _errorCode;
private string _errorMessage;
private string _targetId;
/// <summary>
/// Gets and sets the property ErrorCode.
/// <para>
/// The error code that indicates why the target removal failed. If the value is <code>ConcurrentModificationException</code>,
/// too many requests were made at the same time.
/// </para>
/// </summary>
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
/// <summary>
/// Gets and sets the property ErrorMessage.
/// <para>
/// The error message that explains why the target removal failed.
/// </para>
/// </summary>
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
/// <summary>
/// Gets and sets the property TargetId.
/// <para>
/// The ID of the target.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string TargetId
{
get { return this._targetId; }
set { this._targetId = value; }
}
// Check to see if TargetId property is set
internal bool IsSetTargetId()
{
return this._targetId != 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// A <code>Replay</code> object that contains details about a replay.
/// </summary>
public partial class Replay
{
private DateTime? _eventEndTime;
private DateTime? _eventLastReplayedTime;
private string _eventSourceArn;
private DateTime? _eventStartTime;
private DateTime? _replayEndTime;
private string _replayName;
private DateTime? _replayStartTime;
private ReplayState _state;
private string _stateReason;
/// <summary>
/// Gets and sets the property EventEndTime.
/// <para>
/// A time stamp for the time to start replaying events. Any event with a creation time
/// prior to the <code>EventEndTime</code> specified is replayed.
/// </para>
/// </summary>
public DateTime EventEndTime
{
get { return this._eventEndTime.GetValueOrDefault(); }
set { this._eventEndTime = value; }
}
// Check to see if EventEndTime property is set
internal bool IsSetEventEndTime()
{
return this._eventEndTime.HasValue;
}
/// <summary>
/// Gets and sets the property EventLastReplayedTime.
/// <para>
/// A time stamp for the time that the last event was replayed.
/// </para>
/// </summary>
public DateTime EventLastReplayedTime
{
get { return this._eventLastReplayedTime.GetValueOrDefault(); }
set { this._eventLastReplayedTime = value; }
}
// Check to see if EventLastReplayedTime property is set
internal bool IsSetEventLastReplayedTime()
{
return this._eventLastReplayedTime.HasValue;
}
/// <summary>
/// Gets and sets the property EventSourceArn.
/// <para>
/// The ARN of the archive to replay event from.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string EventSourceArn
{
get { return this._eventSourceArn; }
set { this._eventSourceArn = value; }
}
// Check to see if EventSourceArn property is set
internal bool IsSetEventSourceArn()
{
return this._eventSourceArn != null;
}
/// <summary>
/// Gets and sets the property EventStartTime.
/// <para>
/// A time stamp for the time to start replaying events. This is determined by the time
/// in the event as described in <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html#eventbridge-Type-PutEventsRequestEntry-Time">Time</a>.
/// </para>
/// </summary>
public DateTime EventStartTime
{
get { return this._eventStartTime.GetValueOrDefault(); }
set { this._eventStartTime = value; }
}
// Check to see if EventStartTime property is set
internal bool IsSetEventStartTime()
{
return this._eventStartTime.HasValue;
}
/// <summary>
/// Gets and sets the property ReplayEndTime.
/// <para>
/// A time stamp for the time that the replay completed.
/// </para>
/// </summary>
public DateTime ReplayEndTime
{
get { return this._replayEndTime.GetValueOrDefault(); }
set { this._replayEndTime = value; }
}
// Check to see if ReplayEndTime property is set
internal bool IsSetReplayEndTime()
{
return this._replayEndTime.HasValue;
}
/// <summary>
/// Gets and sets the property ReplayName.
/// <para>
/// The name of the replay.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string ReplayName
{
get { return this._replayName; }
set { this._replayName = value; }
}
// Check to see if ReplayName property is set
internal bool IsSetReplayName()
{
return this._replayName != null;
}
/// <summary>
/// Gets and sets the property ReplayStartTime.
/// <para>
/// A time stamp for the time that the replay started.
/// </para>
/// </summary>
public DateTime ReplayStartTime
{
get { return this._replayStartTime.GetValueOrDefault(); }
set { this._replayStartTime = value; }
}
// Check to see if ReplayStartTime property is set
internal bool IsSetReplayStartTime()
{
return this._replayStartTime.HasValue;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The current state of the replay.
/// </para>
/// </summary>
public ReplayState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property StateReason.
/// <para>
/// A description of why the replay is in the current state.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string StateReason
{
get { return this._stateReason; }
set { this._stateReason = value; }
}
// Check to see if StateReason property is set
internal bool IsSetStateReason()
{
return this._stateReason != null;
}
}
} | 214 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// A <code>ReplayDestination</code> object that contains details about a replay.
/// </summary>
public partial class ReplayDestination
{
private string _arn;
private List<string> _filterArns = new List<string>();
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the event bus to replay event to. You can replay events only to the event
/// bus specified to create the archive.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property FilterArns.
/// <para>
/// A list of ARNs for rules to replay events to.
/// </para>
/// </summary>
public List<string> FilterArns
{
get { return this._filterArns; }
set { this._filterArns = value; }
}
// Check to see if FilterArns property is set
internal bool IsSetFilterArns()
{
return this._filterArns != null && this._filterArns.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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// The resource you are trying to create already exists.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceAlreadyExistsException : AmazonCloudWatchEventsException
{
/// <summary>
/// Constructs a new ResourceAlreadyExistsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceAlreadyExistsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceAlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceAlreadyExistsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceAlreadyExistsException
/// </summary>
/// <param name="innerException"></param>
public ResourceAlreadyExistsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceAlreadyExistsException
/// </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 ResourceAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceAlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceAlreadyExistsException(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 ResourceAlreadyExistsException 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 ResourceAlreadyExistsException(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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// An entity that you specified does not exist.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonCloudWatchEventsException
{
/// <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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// A <code>RetryPolicy</code> object that includes information about the retry policy
/// settings.
/// </summary>
public partial class RetryPolicy
{
private int? _maximumEventAgeInSeconds;
private int? _maximumRetryAttempts;
/// <summary>
/// Gets and sets the property MaximumEventAgeInSeconds.
/// <para>
/// The maximum amount of time, in seconds, to continue to make retry attempts.
/// </para>
/// </summary>
[AWSProperty(Min=60, Max=86400)]
public int MaximumEventAgeInSeconds
{
get { return this._maximumEventAgeInSeconds.GetValueOrDefault(); }
set { this._maximumEventAgeInSeconds = value; }
}
// Check to see if MaximumEventAgeInSeconds property is set
internal bool IsSetMaximumEventAgeInSeconds()
{
return this._maximumEventAgeInSeconds.HasValue;
}
/// <summary>
/// Gets and sets the property MaximumRetryAttempts.
/// <para>
/// The maximum number of retry attempts to make before the request fails. Retry attempts
/// continue until either the maximum number of attempts is made or until the duration
/// of the <code>MaximumEventAgeInSeconds</code> is met.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=185)]
public int MaximumRetryAttempts
{
get { return this._maximumRetryAttempts.GetValueOrDefault(); }
set { this._maximumRetryAttempts = value; }
}
// Check to see if MaximumRetryAttempts property is set
internal bool IsSetMaximumRetryAttempts()
{
return this._maximumRetryAttempts.HasValue;
}
}
} | 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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// Contains information about a rule in Amazon EventBridge.
/// </summary>
public partial class Rule
{
private string _arn;
private string _description;
private string _eventBusName;
private string _eventPattern;
private string _managedBy;
private string _name;
private string _roleArn;
private string _scheduleExpression;
private RuleState _state;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the rule.
/// </para>
/// </summary>
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EventBusName.
/// <para>
/// The name or ARN of the event bus associated with the rule. If you omit this, the default
/// event bus is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
/// <summary>
/// Gets and sets the property EventPattern.
/// <para>
/// The event pattern of the rule. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
/// and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
/// </summary>
public string EventPattern
{
get { return this._eventPattern; }
set { this._eventPattern = value; }
}
// Check to see if EventPattern property is set
internal bool IsSetEventPattern()
{
return this._eventPattern != null;
}
/// <summary>
/// Gets and sets the property ManagedBy.
/// <para>
/// If the rule was created on behalf of your account by an Amazon Web Services service,
/// this field displays the principal name of the service that created the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string ManagedBy
{
get { return this._managedBy; }
set { this._managedBy = value; }
}
// Check to see if ManagedBy property is set
internal bool IsSetManagedBy()
{
return this._managedBy != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property RoleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the role that is used for target invocation.
/// </para>
///
/// <para>
/// If you're setting an event bus in another account as the target and that account granted
/// permission to your account through an organization instead of directly by the account
/// ID, you must specify a <code>RoleArn</code> with proper permissions in the <code>Target</code>
/// structure, instead of here in this parameter.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
/// <summary>
/// Gets and sets the property ScheduleExpression.
/// <para>
/// The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For
/// more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html">Creating
/// an Amazon EventBridge rule that runs on a schedule</a>.
/// </para>
/// </summary>
[AWSProperty(Max=256)]
public string ScheduleExpression
{
get { return this._scheduleExpression; }
set { this._scheduleExpression = value; }
}
// Check to see if ScheduleExpression property is set
internal bool IsSetScheduleExpression()
{
return this._scheduleExpression != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the rule.
/// </para>
/// </summary>
public RuleState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
} | 228 |
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 events-2015-10-07.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.CloudWatchEvents.Model
{
/// <summary>
/// This parameter contains the criteria (either InstanceIds or a tag) used to specify
/// which EC2 instances are to be sent the command.
/// </summary>
public partial class RunCommandParameters
{
private List<RunCommandTarget> _runCommandTargets = new List<RunCommandTarget>();
/// <summary>
/// Gets and sets the property RunCommandTargets.
/// <para>
/// Currently, we support including only one RunCommandTarget block, which specifies either
/// an array of InstanceIds or a tag.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=5)]
public List<RunCommandTarget> RunCommandTargets
{
get { return this._runCommandTargets; }
set { this._runCommandTargets = value; }
}
// Check to see if RunCommandTargets property is set
internal bool IsSetRunCommandTargets()
{
return this._runCommandTargets != null && this._runCommandTargets.Count > 0;
}
}
} | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.