コード例 #1
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/emr/create-studio-session-mapping.html
if __name__ == '__main__':
    """
	delete-studio-session-mapping : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/emr/delete-studio-session-mapping.html
	get-studio-session-mapping : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/emr/get-studio-session-mapping.html
	list-studio-session-mappings : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/emr/list-studio-session-mappings.html
	update-studio-session-mapping : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/emr/update-studio-session-mapping.html
    """

    parameter_display_string = """
    # studio-id : The ID of the Amazon EMR Studio to which the user or group will be mapped.
    # identity-type : Specifies whether the identity to map to the Studio is a user or a group.
Possible values:

USER
GROUP
    # session-policy-arn : The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. Session policies refine Studio user permissions without the need to use multiple IAM user roles.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("emr", "create-studio-session-mapping", "studio-id", "identity-type", "session-policy-arn", add_option_dict)
コード例 #2
0
ファイル: task-set_create.py プロジェクト: lxtxl/aws_cli
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/create-task-set.html
if __name__ == '__main__':
    """
	delete-task-set : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/delete-task-set.html
	describe-task-sets : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/describe-task-sets.html
	update-task-set : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/update-task-set.html
    """

    parameter_display_string = """
    # service : The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
    # cluster : The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
    # task-definition : The task definition for the tasks in the task set to use.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("ecs", "create-task-set", "service", "cluster",
                          "task-definition", add_option_dict)
コード例 #3
0
ファイル: record_delete.py プロジェクト: lxtxl/aws_cli
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker-featurestore-runtime/delete-record.html
if __name__ == '__main__':
    """
	get-record : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker-featurestore-runtime/get-record.html
	put-record : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker-featurestore-runtime/put-record.html
    """

    parameter_display_string = """
    # feature-group-name : The name of the feature group to delete the record from.
    # record-identifier-value-as-string : The value for the RecordIdentifier that uniquely identifies the record, in string format.
    # event-time : Timestamp indicating when the deletion event occurred. EventTime can be used to query data at a certain point in time.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("sagemaker-featurestore-runtime", "delete-record", "feature-group-name", "record-identifier-value-as-string", "event-time", add_option_dict)
コード例 #4
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/comprehend/start-topics-detection-job.html
if __name__ == '__main__':
    """
	describe-topics-detection-job : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/comprehend/describe-topics-detection-job.html
	list-topics-detection-jobs : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/comprehend/list-topics-detection-jobs.html
    """

    parameter_display_string = """
    # input-data-config : 
    # output-data-config : 
    # data-access-role-arn : The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions .
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("comprehend", "start-topics-detection-job",
                          "input-data-config", "output-data-config",
                          "data-access-role-arn", add_option_dict)
コード例 #5
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/create-platform-version.html
if __name__ == '__main__':
    """
	delete-platform-version : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/delete-platform-version.html
	describe-platform-version : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/describe-platform-version.html
	list-platform-versions : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticbeanstalk/list-platform-versions.html
    """

    parameter_display_string = """
    # platform-name : The name of your custom platform.
    # platform-version : The number, such as 1.0.2, for the new platform version.
    # platform-definition-bundle : 
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("elasticbeanstalk", "create-platform-version", "platform-name", "platform-version", "platform-definition-bundle", add_option_dict)
コード例 #6
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/workmail/update-mailbox-quota.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # organization-id : The identifier for the organization that contains the user for whom to update the mailbox quota.
    # user-id : The identifer for the user for whom to update the mailbox quota.
    # mailbox-quota : The updated mailbox quota, in MB, for the specified user.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("workmail", "update-mailbox-quota",
                          "organization-id", "user-id", "mailbox-quota",
                          add_option_dict)
コード例 #7
0
MeasureName -> (string)

Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.

MeasureValue -> (string)

Contains the measure value for the time series data point.

MeasureValueType -> (string)

Contains the data type of the measure value for the time series data point.

Time -> (string)

Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is 12345 and the unit is ms , then 12345 ms have elapsed since the epoch.

TimeUnit -> (string)

The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.

Version -> (long)

64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version will still be updated . Default value is to 1.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("timestream-write", "write-records", "database-name",
                          "table-name", "records", add_option_dict)
コード例 #8
0
key -> (string)
value -> (structure)

The criteria to use in the filter that defines the archive rule.
contains -> (list)

A “contains” operator to match for the filter used to create the rule.
(string)

eq -> (list)

An “equals” operator to match for the filter used to create the rule.
(string)

exists -> (boolean)

An “exists” operator to match for the filter used to create the rule.

neq -> (list)

A “not equals” operator to match for the filter used to create the rule.
(string)
    # rule-name : The name of the rule to update.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("accessanalyzer", "update-archive-rule",
                          "analyzer-name", "filter", "rule-name",
                          add_option_dict)
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticache/increase-node-groups-in-global-replication-group.html
if __name__ == '__main__':
    """
	decrease-node-groups-in-global-replication-group : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elasticache/decrease-node-groups-in-global-replication-group.html
    """

    parameter_display_string = """
    # global-replication-group-id : The name of the Global Datastore
    # node-group-count : The number of node groups you wish to add
    # apply-immediately | --no-apply-immediately : Indicates that the process begins immediately. At present, the only permitted value for this parameter is true.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("elasticache",
                          "increase-node-groups-in-global-replication-group",
                          "global-replication-group-id", "node-group-count",
                          "apply-immediately | --no-apply-immediately",
                          add_option_dict)
コード例 #10
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudsearch/define-expression.html
if __name__ == '__main__':
    """
	delete-expression : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudsearch/delete-expression.html
	describe-expressions : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudsearch/describe-expressions.html
    """

    parameter_display_string = """
    # domain-name : A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
    # expression : The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .
    # name : Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("cloudsearch", "define-expression", "domain-name",
                          "expression", "name", add_option_dict)
コード例 #11
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codeartifact/put-repository-permissions-policy.html
if __name__ == '__main__':
    """
	delete-repository-permissions-policy : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codeartifact/delete-repository-permissions-policy.html
	get-repository-permissions-policy : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codeartifact/get-repository-permissions-policy.html
    """

    parameter_display_string = """
    # domain : The name of the domain containing the repository to set the resource policy on.
    # repository : The name of the repository to set the resource policy on.
    # policy-document : A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("codeartifact", "put-repository-permissions-policy",
                          "domain", "repository", "policy-document",
                          add_option_dict)
コード例 #12
0
ObjectAttributeUpdateValue -> (structure)

The value that you want to update to.
StringValue -> (string)

A string data value.

BinaryValue -> (blob)

A binary data value.

BooleanValue -> (boolean)

A Boolean data value.

NumberValue -> (string)

A number data value.

DatetimeValue -> (timestamp)

A date and time value.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("clouddirectory", "update-object-attributes",
                          "directory-arn", "object-reference",
                          "attribute-updates", add_option_dict)
コード例 #13
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/kinesis-video-signaling/send-alexa-offer-to-master.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # channel-arn : The ARN of the signaling channel by which Alexa and the master peer communicate.
    # sender-client-id : The unique identifier for the sender client.
    # message-payload : The base64-encoded SDP offer content.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("kinesis-video-signaling",
                          "send-alexa-offer-to-master", "channel-arn",
                          "sender-client-id", "message-payload",
                          add_option_dict)
コード例 #14
0
ファイル: use-case_create.py プロジェクト: lxtxl/aws_cli
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/create-use-case.html
if __name__ == '__main__':
    """
	delete-use-case : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/delete-use-case.html
	list-use-cases : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/list-use-cases.html
    """

    parameter_display_string = """
    # instance-id : The identifier of the Amazon Connect instance.
    # integration-association-id : The identifier for the AppIntegration association.
    # use-case-type : The type of use case to associate to the AppIntegration association. Each AppIntegration association can have only one of each use case type.
Possible values:

RULES_EVALUATION
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("connect", "create-use-case", "instance-id",
                          "integration-association-id", "use-case-type",
                          add_option_dict)
コード例 #15
0
ファイル: robot_create.py プロジェクト: lxtxl/aws_cli
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/robomaker/create-robot.html
if __name__ == '__main__':
    """
	delete-robot : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/robomaker/delete-robot.html
	deregister-robot : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/robomaker/deregister-robot.html
	describe-robot : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/robomaker/describe-robot.html
	list-robots : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/robomaker/list-robots.html
	register-robot : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/robomaker/register-robot.html
    """

    parameter_display_string = """
    # name : The name for the robot.
    # architecture : The target architecture of the robot.
Possible values:

X86_64
ARM64
ARMHF
    # greengrass-group-id : The Greengrass group id.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("robomaker", "create-robot", "name", "architecture",
                          "greengrass-group-id", add_option_dict)
コード例 #16
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/kafka/update-cluster-kafka-version.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # cluster-arn : The Amazon Resource Name (ARN) of the cluster to be updated.
    # current-version : Current cluster version.
    # target-kafka-version : Target Kafka version.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("kafka", "update-cluster-kafka-version",
                          "cluster-arn", "current-version",
                          "target-kafka-version", add_option_dict)
コード例 #17
0
Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

URL_DECODE

Use this option to decode a URL-encoded value.

ComparisonOperator -> (string)

The type of comparison you want AWS WAF to perform. AWS WAF uses this in combination with the provided Size and FieldToMatch to build an expression in the form of “Size ComparisonOperator size in bytes of FieldToMatch “. If that expression is true, the SizeConstraint is considered to match.

EQ : Used to test if the Size is equal to the size of the FieldToMatch
NE : Used to test if the Size is not equal to the size of the FieldToMatch
LE : Used to test if the Size is less than or equal to the size of the FieldToMatch
LT : Used to test if the Size is strictly less than the size of the FieldToMatch
GE : Used to test if the Size is greater than or equal to the size of the FieldToMatch
GT : Used to test if the Size is strictly greater than the size of the FieldToMatch


Size -> (long)

The size in bytes that you want AWS WAF to compare against the size of the specified FieldToMatch . AWS WAF uses this in combination with ComparisonOperator and FieldToMatch to build an expression in the form of “Size ComparisonOperator size in bytes of FieldToMatch “. If that expression is true, the SizeConstraint is considered to match.
Valid values for size are 0 - 21474836480 bytes (0 - 20 GB).
If you specify URI for the value of Type , the / in the URI counts as one character. For example, the URI /logo.jpg is nine characters long.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("waf", "update-size-constraint-set",
                          "size-constraint-set-id", "change-token", "updates",
                          add_option_dict)
コード例 #18
0
ファイル: model_create.py プロジェクト: lxtxl/aws_cli
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigatewayv2/create-model.html
if __name__ == '__main__':
    """
	delete-model : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigatewayv2/delete-model.html
	get-model : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigatewayv2/get-model.html
	get-models : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigatewayv2/get-models.html
	update-model : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigatewayv2/update-model.html
    """

    parameter_display_string = """
    # api-id : The API identifier.
    # name : The name of the model. Must be alphanumeric.
    # schema : The schema for the model. For application/json models, this should be JSON schema draft 4 model.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("apigatewayv2", "create-model", "api-id", "name",
                          "schema", add_option_dict)
コード例 #19
0
Replaces (ampersand)gt; with >
Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh; , with the corresponding characters
Replaces characters that are represented in decimal format, (ampersand)#nnnn; , with the corresponding characters


LOWERCASE

Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

URL_DECODE

Use this option to decode a URL-encoded value.

NONE

Specify NONE if you don’t want to perform any text transformations.

RegexPatternSetId -> (string)

The RegexPatternSetId for a RegexPatternSet . You use RegexPatternSetId to get information about a RegexPatternSet (see  GetRegexPatternSet ), update a RegexPatternSet (see  UpdateRegexPatternSet ), insert a RegexPatternSet into a RegexMatchSet or delete one from a RegexMatchSet (see  UpdateRegexMatchSet ), and delete an RegexPatternSet from AWS WAF (see  DeleteRegexPatternSet ).

RegexPatternSetId is returned by  CreateRegexPatternSet and by  ListRegexPatternSets .
    # change-token : The value returned by the most recent call to  GetChangeToken .
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("waf", "update-regex-match-set",
                          "regex-match-set-id", "updates", "change-token",
                          add_option_dict)
コード例 #20
0
ファイル: component_create.py プロジェクト: lxtxl/aws_cli
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/application-insights/create-component.html
if __name__ == '__main__':
    """
	delete-component : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/application-insights/delete-component.html
	describe-component : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/application-insights/describe-component.html
	list-components : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/application-insights/list-components.html
	update-component : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/application-insights/update-component.html
    """

    parameter_display_string = """
    # resource-group-name : The name of the resource group.
    # component-name : The name of the component.
    # resource-list : The list of resource ARNs that belong to the component.
(string)
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("application-insights", "create-component",
                          "resource-group-name", "component-name",
                          "resource-list", add_option_dict)
コード例 #21
0
ファイル: host_create.py プロジェクト: lxtxl/aws_cli
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codestar-connections/create-host.html
if __name__ == '__main__':
    """
	delete-host : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codestar-connections/delete-host.html
	get-host : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codestar-connections/get-host.html
	list-hosts : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codestar-connections/list-hosts.html
	update-host : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codestar-connections/update-host.html
    """

    parameter_display_string = """
    # name : The name of the host to be created. The name must be unique in the calling AWS account.
    # provider-type : The name of the installed provider to be associated with your connection. The host resource represents the infrastructure where your provider type is installed. The valid provider type is GitHub Enterprise Server.
Possible values:

Bitbucket
GitHub
GitHubEnterpriseServer
    # provider-endpoint : The endpoint of the infrastructure to be represented by the host after it is created.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("codestar-connections", "create-host", "name",
                          "provider-type", "provider-endpoint",
                          add_option_dict)
コード例 #22
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/forecast/create-forecast-export-job.html
if __name__ == '__main__':
    """
	delete-forecast-export-job : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/forecast/delete-forecast-export-job.html
	describe-forecast-export-job : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/forecast/describe-forecast-export-job.html
	list-forecast-export-jobs : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/forecast/list-forecast-export-jobs.html
    """

    parameter_display_string = """
    # forecast-export-job-name : The name for the forecast export job.
    # forecast-arn : The Amazon Resource Name (ARN) of the forecast that you want to export.
    # destination : 
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("forecast", "create-forecast-export-job",
                          "forecast-export-job-name", "forecast-arn",
                          "destination", add_option_dict)
コード例 #23
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/kinesisanalyticsv2/add-application-reference-data-source.html
if __name__ == '__main__':
    """
	delete-application-reference-data-source : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/kinesisanalyticsv2/delete-application-reference-data-source.html
    """

    parameter_display_string = """
    # application-name : The name of an existing application.
    # current-application-version-id : 
    # reference-data-source : 
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("kinesisanalyticsv2", "add-application-reference-data-source", "application-name", "current-application-version-id", "reference-data-source", add_option_dict)
コード例 #24
0
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloud9/create-environment-membership.html
if __name__ == '__main__':
    """
	delete-environment-membership : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloud9/delete-environment-membership.html
	describe-environment-memberships : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloud9/describe-environment-memberships.html
	update-environment-membership : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloud9/update-environment-membership.html
    """

    parameter_display_string = """
    # environment-id : The ID of the environment that contains the environment member you want to add.
    # user-arn : The Amazon Resource Name (ARN) of the environment member you want to add.
    # permissions : The type of environment member permissions you want to associate with this environment member. Available values include:

read-only : Has read-only access to the environment.
read-write : Has read-write access to the environment.

Possible values:

read-write
read-only
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("cloud9", "create-environment-membership", "environment-id", "user-arn", "permissions", add_option_dict)
コード例 #25
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/create-resource-server.html
if __name__ == '__main__':
    """
	delete-resource-server : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/delete-resource-server.html
	describe-resource-server : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/describe-resource-server.html
	list-resource-servers : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/list-resource-servers.html
	update-resource-server : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/update-resource-server.html
    """

    parameter_display_string = """
    # user-pool-id : The user pool ID for the user pool.
    # identifier : A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located. For example, https://my-weather-api.example.com .
    # name : A friendly name for the resource server.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("cognito-idp", "create-resource-server", "user-pool-id", "identifier", "name", add_option_dict)
コード例 #26
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys

sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotsitewise/disassociate-assets.html
if __name__ == '__main__':
    """
	associate-assets : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotsitewise/associate-assets.html
	create-asset : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotsitewise/create-asset.html
	delete-asset : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotsitewise/delete-asset.html
	describe-asset : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotsitewise/describe-asset.html
	list-assets : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotsitewise/list-assets.html
	update-asset : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotsitewise/update-asset.html
    """

    parameter_display_string = """
    # asset-id : The ID of the parent asset from which to disassociate the child asset.
    # hierarchy-id : The ID of a hierarchy in the parent asset’s model. Hierarchies allow different groupings of assets to be formed that all come from the same asset model. You can use the hierarchy ID to identify the correct asset to disassociate. For more information, see Asset hierarchies in the AWS IoT SiteWise User Guide .
    # child-asset-id : The ID of the child asset to disassociate.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("iotsitewise", "disassociate-assets", "asset-id",
                          "hierarchy-id", "child-asset-id", add_option_dict)
コード例 #27
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/kinesisanalyticsv2/add-application-vpc-configuration.html
if __name__ == '__main__':
    """
	delete-application-vpc-configuration : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/kinesisanalyticsv2/delete-application-vpc-configuration.html
    """

    parameter_display_string = """
    # application-name : The name of an existing application.
    # current-application-version-id : 
    # vpc-configuration : 
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("kinesisanalyticsv2",
                          "add-application-vpc-configuration",
                          "application-name", "current-application-version-id",
                          "vpc-configuration", add_option_dict)
コード例 #28
0
	delete-tags : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/machinelearning/delete-tags.html
	describe-tags : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/machinelearning/describe-tags.html
    """

    parameter_display_string = """
    # tags : The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
(structure)

A custom key-value pair associated with an ML object, such as an ML model.
Key -> (string)

A unique identifier for the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.

Value -> (string)

An optional string, typically used to describe or define the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
    # resource-id : The ID of the ML object to tag. For example, exampleModelId .
    # resource-type : The type of the ML object to tag.
Possible values:

BatchPrediction
DataSource
Evaluation
MLModel
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("machinelearning", "add-tags", "tags", "resource-id",
                          "resource-type", add_option_dict)
コード例 #29
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/autoscaling/create-auto-scaling-group.html
if __name__ == '__main__':
    """
	delete-auto-scaling-group : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/autoscaling/delete-auto-scaling-group.html
	describe-auto-scaling-groups : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/autoscaling/describe-auto-scaling-groups.html
	update-auto-scaling-group : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/autoscaling/update-auto-scaling-group.html
    """

    parameter_display_string = """
    # auto-scaling-group-name : The name of the Auto Scaling group. This name must be unique per Region per account.
    # min-size : The minimum size of the group.
    # max-size : The maximum size of the group.

Note
With a mixed instances policy that uses instance weighting, Amazon EC2 Auto Scaling may need to go above MaxSize to meet your capacity requirements. In this event, Amazon EC2 Auto Scaling will never go above MaxSize by more than your largest instance weight (weights that define how many units each instance contributes to the desired capacity of the group).
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("autoscaling", "create-auto-scaling-group",
                          "auto-scaling-group-name", "min-size", "max-size",
                          add_option_dict)
コード例 #30
0
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/imagebuilder/update-image-pipeline.html
if __name__ == '__main__':
    """
	create-image-pipeline : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/imagebuilder/create-image-pipeline.html
	delete-image-pipeline : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/imagebuilder/delete-image-pipeline.html
	get-image-pipeline : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/imagebuilder/get-image-pipeline.html
	list-image-pipelines : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/imagebuilder/list-image-pipelines.html
    """

    parameter_display_string = """
    # image-pipeline-arn : The Amazon Resource Name (ARN) of the image pipeline that you want to update.
    # image-recipe-arn : The Amazon Resource Name (ARN) of the image recipe that will be used to configure images updated by this image pipeline.
    # infrastructure-configuration-arn : The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to build images updated by this image pipeline.
    """
    add_option_dict = {}
    add_option_dict["parameter_display_string"] = parameter_display_string
    # ex: add_option_dict["no_value_parameter_list"] = "--single-parameter"
    write_three_parameter("imagebuilder", "update-image-pipeline", "image-pipeline-arn", "image-recipe-arn", "infrastructure-configuration-arn", add_option_dict)