/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the states-2016-11-23.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.StepFunctions.Model
{
///
/// Container for the parameters to the CreateActivity operation.
/// Creates an activity. An activity is a task that you write in any programming language
/// and host on any machine that has access to Step Functions. Activities must poll Step
/// Functions using the GetActivityTask
API action and respond using SendTask*
/// API actions. This function lets Step Functions know the existence of your activity
/// and returns an identifier for use in a state machine and when polling from the activity.
///
///
///
/// This operation is eventually consistent. The results are best effort and may not reflect
/// very recent updates and changes.
///
///
///
/// CreateActivity
is an idempotent API. Subsequent requests won’t create
/// a duplicate resource if it was already created. CreateActivity
's idempotency
/// check is based on the activity name
. If a following request has different
/// tags
values, Step Functions will ignore these differences and treat it
/// as an idempotent request of the previous. In this case, tags
will not
/// be updated, even if they are different.
///
///
///
public partial class CreateActivityRequest : AmazonStepFunctionsRequest
{
private string _name;
private List _tags = new List();
///
/// Gets and sets the property Name.
///
/// The name of the activity to create. This name must be unique for your Amazon Web Services
/// account and region for 90 days. For more information, see
/// Limits Related to State Machine Executions in the Step Functions Developer
/// Guide.
///
///
///
/// A name must not contain:
///
/// -
///
/// white space
///
///
-
///
/// brackets
< > { } [ ]
///
/// -
///
/// wildcard characters
? *
///
/// -
///
/// special characters
" # % \ ^ | ~ ` $ & , ; : /
///
/// -
///
/// control characters (
U+0000-001F
, U+007F-009F
)
///
///
///
/// To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z,
/// - and _.
///
///
[AWSProperty(Required=true, Min=1, Max=80)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Tags.
///
/// The list of tags to add to a resource.
///
///
///
/// An array of key-value pairs. For more information, see Using
/// Cost Allocation Tags in the Amazon Web Services Billing and Cost Management
/// User Guide, and Controlling
/// Access Using IAM Tags.
///
///
///
/// Tags may only contain Unicode letters, digits, white space, or these symbols: _
/// . : / = + - @
.
///
///
public List 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;
}
}
}