示例#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 execute_two_parameter


# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/fms/get-compliance-detail.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # policy-id : The ID of the policy that you want to get the details for. PolicyId is returned by PutPolicy and by ListPolicies .
    # member-account : The AWS account that owns the resources that you want to get the details for.
    """

    execute_two_parameter("fms", "get-compliance-detail", "policy-id", "member-account", parameter_display_string)
示例#2
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/get-bucket-inventory-configuration.html
if __name__ == '__main__':
    """
	delete-bucket-inventory-configuration : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/delete-bucket-inventory-configuration.html
	list-bucket-inventory-configurations : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/list-bucket-inventory-configurations.html
	put-bucket-inventory-configuration : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/put-bucket-inventory-configuration.html
    """

    parameter_display_string = """
    # bucket : The name of the bucket containing the inventory configuration to retrieve.
    # id : The ID used to identify the inventory configuration.
    """

    execute_two_parameter("s3api", "get-bucket-inventory-configuration",
                          "bucket", "id", parameter_display_string)
示例#3
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 execute_two_parameter


# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/clouddirectory/list-incoming-typed-links.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # directory-arn : The Amazon Resource Name (ARN) of the directory where you want to list the typed links.
    # object-reference : 
    """

    execute_two_parameter("clouddirectory", "list-incoming-typed-links", "directory-arn", "object-reference", parameter_display_string)
示例#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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sso/get-role-credentials.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # role-name : The friendly name of the role that is assigned to the user.
    # account-id : The identifier for the AWS account that is assigned to the user.
    """

    execute_two_parameter("sso", "get-role-credentials", "role-name",
                          "account-id", parameter_display_string)
示例#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 execute_two_parameter


# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/application-insights/describe-component.html
if __name__ == '__main__':
    """
	create-component : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/application-insights/create-component.html
	delete-component : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/application-insights/delete-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.
    """

    execute_two_parameter("application-insights", "describe-component", "resource-group-name", "component-name", parameter_display_string)
示例#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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appsync/get-data-source.html
if __name__ == '__main__':
    """
	create-data-source : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appsync/create-data-source.html
	delete-data-source : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appsync/delete-data-source.html
	list-data-sources : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appsync/list-data-sources.html
	update-data-source : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appsync/update-data-source.html
    """

    parameter_display_string = """
    # api-id : The API ID.
    # name : The name of the data source.
    """

    execute_two_parameter("appsync", "get-data-source", "api-id", "name",
                          parameter_display_string)
示例#7
0
文件: node_get.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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/managedblockchain/get-node.html
if __name__ == '__main__':
    """
	create-node : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/managedblockchain/create-node.html
	delete-node : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/managedblockchain/delete-node.html
	list-nodes : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/managedblockchain/list-nodes.html
	update-node : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/managedblockchain/update-node.html
    """

    parameter_display_string = """
    # network-id : The unique identifier of the network to which the node belongs.
    # member-id : The unique identifier of the member that owns the node.
    """

    execute_two_parameter("managedblockchain", "get-node", "network-id",
                          "member-id", parameter_display_string)
示例#8
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/clouddirectory/list-index.html
if __name__ == '__main__':
    """
	create-index : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/clouddirectory/create-index.html
    """

    parameter_display_string = """
    # directory-arn : The ARN of the directory that the index exists in.
    # index-reference : 
    """

    execute_two_parameter("clouddirectory", "list-index", "directory-arn",
                          "index-reference", parameter_display_string)
示例#9
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigateway/get-method.html
if __name__ == '__main__':
    """
	delete-method : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigateway/delete-method.html
	put-method : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigateway/put-method.html
	update-method : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigateway/update-method.html
    """

    parameter_display_string = """
    # rest-api-id : [Required] The string identifier of the associated  RestApi .
    # resource-id : [Required] The  Resource identifier for the  Method resource.
    """

    execute_two_parameter("apigateway", "get-method", "rest-api-id",
                          "resource-id", parameter_display_string)
示例#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 execute_two_parameter


# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/get-branch.html
if __name__ == '__main__':
    """
	create-branch : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/create-branch.html
	delete-branch : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/delete-branch.html
	list-branches : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/list-branches.html
	update-branch : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/update-branch.html
    """

    parameter_display_string = """
    # app-id : The unique ID for an Amplify app.
    # branch-name : The name for the branch.
    """

    execute_two_parameter("amplify", "get-branch", "app-id", "branch-name", parameter_display_string)
示例#11
0
An attribute of type Null. For example:

"NULL": true


BOOL -> (boolean)

An attribute of type Boolean. For example:

"BOOL": true




NULL -> (boolean)

An attribute of type Null. For example:

"NULL": true


BOOL -> (boolean)

An attribute of type Boolean. For example:

"BOOL": true
    """

    execute_two_parameter("dynamodb", "get-item", "table-name", "key",
                          parameter_display_string)
示例#12
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 execute_two_parameter

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

    parameter_display_string = """
    # application-id : The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
    # campaign-id : The unique identifier for the campaign.
    """

    execute_two_parameter("pinpoint", "get-campaign", "application-id",
                          "campaign-id", parameter_display_string)
示例#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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/xray/get-service-graph.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # start-time : 
    # end-time : 
    """

    execute_two_parameter("xray", "get-service-graph", "start-time",
                          "end-time", parameter_display_string)
示例#14
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/swf/describe-workflow-execution.html
if __name__ == '__main__':
    """
	signal-workflow-execution : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/swf/signal-workflow-execution.html
	start-workflow-execution : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/swf/start-workflow-execution.html
	terminate-workflow-execution : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/swf/terminate-workflow-execution.html
    """

    parameter_display_string = """
    # domain : The name of the domain containing the workflow execution.
    # execution : 
    """

    execute_two_parameter("swf", "describe-workflow-execution", "domain",
                          "execution", parameter_display_string)
示例#15
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/describe-routing-profile.html
if __name__ == '__main__':
    """
	create-routing-profile : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/create-routing-profile.html
	list-routing-profiles : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/list-routing-profiles.html
    """

    parameter_display_string = """
    # instance-id : The identifier of the Amazon Connect instance.
    # routing-profile-id : The identifier of the routing profile.
    """

    execute_two_parameter("connect", "describe-routing-profile", "instance-id",
                          "routing-profile-id", parameter_display_string)
示例#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 execute_two_parameter


# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/quicksight/list-template-aliases.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # aws-account-id : The ID of the AWS account that contains the template aliases that you’re listing.
    # template-id : The ID for the template.
    """

    execute_two_parameter("quicksight", "list-template-aliases", "aws-account-id", "template-id", parameter_display_string)
示例#17
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/get-object-tagging.html
if __name__ == '__main__':
    """
	delete-object-tagging : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/delete-object-tagging.html
	put-object-tagging : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/put-object-tagging.html
    """

    parameter_display_string = """
    # bucket : The bucket name containing the object for which to get the tagging information.
When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName -AccountId .s3-accesspoint.*Region* .amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide .
When using this API with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName -AccountId .*outpostID* .s3-outposts.*Region* .amazonaws.com. When using this operation using S3 on Outposts through the AWS SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using S3 on Outposts in the Amazon Simple Storage Service Developer Guide .
    # key : Object key for which to get the tagging information.
    """

    execute_two_parameter("s3api", "get-object-tagging", "bucket", "key",
                          parameter_display_string)
示例#18
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/schemas/get-discovered-schema.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # events : An array of strings where each string is a JSON event. These are the events that were used to generate the schema. The array includes a single type of event and has a maximum size of 10 events.
(string)
    # type : The type of event.
Possible values:

OpenApi3
JSONSchemaDraft4
    """

    execute_two_parameter("schemas", "get-discovered-schema", "events", "type",
                          parameter_display_string)
示例#19
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lex-models/get-bot-channel-associations.html
if __name__ == '__main__':
    """
	delete-bot-channel-association : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lex-models/delete-bot-channel-association.html
	get-bot-channel-association : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lex-models/get-bot-channel-association.html
    """

    parameter_display_string = """
    # bot-name : The name of the Amazon Lex bot in the association.
    # bot-alias : An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
    """

    execute_two_parameter("lex-models", "get-bot-channel-associations",
                          "bot-name", "bot-alias", parameter_display_string)
示例#20
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lex-models/get-intent.html
if __name__ == '__main__':
    """
	delete-intent : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lex-models/delete-intent.html
	get-intents : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lex-models/get-intents.html
	put-intent : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lex-models/put-intent.html
    """

    parameter_display_string = """
    # name : The name of the intent. The name is case sensitive.
    # intent-version : The version of the intent.
    """

    execute_two_parameter("lex-models", "get-intent", "name", "intent-version",
                          parameter_display_string)
示例#21
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/list-gateway-routes.html
if __name__ == '__main__':
    """
	create-gateway-route : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/create-gateway-route.html
	delete-gateway-route : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/delete-gateway-route.html
	describe-gateway-route : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/describe-gateway-route.html
	update-gateway-route : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/update-gateway-route.html
    """

    parameter_display_string = """
    # mesh-name : The name of the service mesh to list gateway routes in.
    # virtual-gateway-name : The name of the virtual gateway to list gateway routes in.
    """

    execute_two_parameter("appmesh", "list-gateway-routes", "mesh-name",
                          "virtual-gateway-name", parameter_display_string)
示例#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 execute_two_parameter


# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/configservice/get-compliance-details-by-resource.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # resource-type : The type of the AWS resource for which you want compliance information.
    # resource-id : The ID of the AWS resource for which you want compliance information.
    """

    execute_two_parameter("configservice", "get-compliance-details-by-resource", "resource-type", "resource-id", parameter_display_string)
示例#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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/describe-virtual-service.html
if __name__ == '__main__':
    """
	create-virtual-service : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/create-virtual-service.html
	delete-virtual-service : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/delete-virtual-service.html
	list-virtual-services : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/list-virtual-services.html
	update-virtual-service : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/update-virtual-service.html
    """

    parameter_display_string = """
    # mesh-name : The name of the service mesh that the virtual service resides in.
    # virtual-service-name : The name of the virtual service to describe.
    """

    execute_two_parameter("appmesh", "describe-virtual-service", "mesh-name",
                          "virtual-service-name", parameter_display_string)
#!/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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/servicecatalog/list-organization-portfolio-access.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # portfolio-id : The portfolio identifier. For example, port-2abcdext3y5fk .
    # organization-node-type : The organization node type that will be returned in the output.

ORGANIZATION - Organization that has access to the portfolio.
ORGANIZATIONAL_UNIT - Organizational unit that has access to the portfolio within your organization.
ACCOUNT - Account that has access to the portfolio within your organization.

Possible values:

ORGANIZATION
ORGANIZATIONAL_UNIT
ACCOUNT
    """

    execute_two_parameter("servicecatalog",
                          "list-organization-portfolio-access", "portfolio-id",
                          "organization-node-type", parameter_display_string)
示例#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 execute_two_parameter


# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/xray/get-insight-impact-graph.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # insight-id : The insight’s unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.
    # start-time : 
    """

    execute_two_parameter("xray", "get-insight-impact-graph", "insight-id", "start-time", parameter_display_string)
示例#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 execute_two_parameter

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

    parameter_display_string = """
    # domain-name : [Required] The domain name of the  BasePathMapping resource to be described.
    # base-path : [Required] The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify ‘(none)’ if you do not want callers to specify any base path name after the domain name.
    """

    execute_two_parameter("apigateway", "get-base-path-mapping", "domain-name",
                          "base-path", parameter_display_string)
示例#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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/athena/get-database.html
if __name__ == '__main__':
    """
	list-databases : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/athena/list-databases.html
    """

    parameter_display_string = """
    # catalog-name : The name of the data catalog that contains the database to return.
    # database-name : The name of the database to return.
    """

    execute_two_parameter("athena", "get-database", "catalog-name",
                          "database-name", parameter_display_string)
示例#28
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 execute_two_parameter

# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/describe-user-hierarchy-group.html
if __name__ == '__main__':
    """
	list-user-hierarchy-groups : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/list-user-hierarchy-groups.html
    """

    parameter_display_string = """
    # hierarchy-group-id : The identifier of the hierarchy group.
    # instance-id : The identifier of the Amazon Connect instance.
    """

    execute_two_parameter("connect", "describe-user-hierarchy-group",
                          "hierarchy-group-id", "instance-id",
                          parameter_display_string)
示例#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 execute_two_parameter


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

    parameter_display_string = """
    # rest-api-id : [Required] The string identifier of the associated  RestApi .
    # stage-name : [Required] The name of the  Stage resource to get information about.
    """

    execute_two_parameter("apigateway", "get-stage", "rest-api-id", "stage-name", parameter_display_string)
示例#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 execute_two_parameter


# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sesv2/get-domain-statistics-report.html
if __name__ == '__main__':
    """

    """

    parameter_display_string = """
    # domain : The domain that you want to obtain deliverability metrics for.
    # start-date : 
    """

    execute_two_parameter("sesv2", "get-domain-statistics-report", "domain", "start-date", parameter_display_string)