How to use describe_destinations method in localstack

Best Python code snippet using localstack_python

aws_logs_info.py

Source: aws_logs_info.py Github

copy

Full Screen

...127 if client.can_paginate('describe_destinations'):128 paginator = client.get_paginator('describe_destinations')129 return paginator.paginate(), True130 else:131 return client.describe_destinations(), False132 elif module.params['describe_export_tasks']:133 if client.can_paginate('describe_export_tasks'):134 paginator = client.get_paginator('describe_export_tasks')135 return paginator.paginate(136 statusCode=module.params['task_status']137 ), True138 else:139 return client.describe_export_tasks(140 statusCode=module.params['task_status']141 ), False142 elif module.params['describe_log_streams']:143 if client.can_paginate('describe_log_streams'):144 paginator = client.get_paginator('describe_log_streams')145 return paginator.paginate(...

Full Screen

Full Screen

commands.py

Source: commands.py Github

copy

Full Screen

1xcommands = [2["iam","get_account_authorization_details",['UserDetailList','GroupDetailList','RoleDetailList','Policies','IsTruncated',3 'Marker','ResponseMetadata']],4["iam","list_account_aliases",['AccountAliases','IsTruncated','ResponseMetadata']],5["route53","list_hosted_zones",['ResponseMetadata','HostedZones','IsTruncated','MaxItems']],6["ec2","describe_vpcs",['Vpcs','ResponseMetadata']],7["ec2","describe_subnets",['Subnets','ResponseMetadata']],8["ec2","describe_instances",['Reservations','ResponseMetadata']],9["ec2","describe_volumes",['Volumes','ResponseMetadata']],10["rds","describe_db_instances",['DBInstances','ResponseMetadata']],11["rds","describe_db_snapshots",['DBSnapshots','ResponseMetadata']],12["elb","describe_load_balancers",['LoadBalancerDescriptions','ResponseMetadata']],13["elbv2","describe_load_balancers",['LoadBalancers','ResponseMetadata']],14["redshift","describe_clusters",['Clusters','ResponseMetadata']],15["redshift","describe_cluster_subnet_groups",['ClusterSubnetGroups','ResponseMetadata']],16["sqs","list_queues",['ResponseMetadata']],17["sns","list_topics",['Topics','ResponseMetadata']],18["ec2","describe_security_groups",['SecurityGroups','ResponseMetadata']],19["ec2","describe_network_interfaces",['NetworkInterfaces','ResponseMetadata']],20["ec2","describe_vpc_peering_connections",['VpcPeeringConnections','ResponseMetadata']],21["autoscaling","describe_policies",['ScalingPolicies','ResponseMetadata']],22["autoscaling","describe_auto_scaling_groups",['AutoScalingGroups','ResponseMetadata']],23["cloudformation","describe_stacks",['Stacks','ResponseMetadata']],24["cloudfront","list_distributions",['ResponseMetadata','DistributionList']],25["cloudwatch","describe_alarms",['CompositeAlarms','MetricAlarms','ResponseMetadata']],26["config","describe_config_rules",['ConfigRules','ResponseMetadata']],27["ec2","describe_network_acls",['NetworkAcls','ResponseMetadata']],28["ec2","describe_route_tables",['RouteTables','ResponseMetadata']],29["ec2","describe_flow_logs",['FlowLogs','ResponseMetadata']],30["ec2","describe_vpc_endpoint_connections",['VpcEndpointConnections','ResponseMetadata']],31["ec2","describe_vpc_endpoints",['VpcEndpoints','ResponseMetadata']],32["ecr","describe_repositories",['repositories','ResponseMetadata']],33["elasticache","describe_cache_clusters",['CacheClusters','ResponseMetadata']],34["efs","describe_file_systems",['ResponseMetadata','FileSystems']],35["events","list_rules",['Rules','ResponseMetadata']],36["kms","list_keys",['Keys','Truncated','ResponseMetadata']],37["lambda","list_functions",['ResponseMetadata','Functions']],38["ecs","list_clusters",['clusterArns','ResponseMetadata']],39["logs","describe_destinations",['destinations','ResponseMetadata']],40["logs","describe_log_groups",['logGroups','ResponseMetadata']],41["logs","describe_resource_policies",['resourcePolicies','ResponseMetadata']],42["apigateway","get_rest_apis",['ResponseMetadata','items']],43["accessanalyzer","list_analyzers",['ResponseMetadata','analyzers']]44]45xcommands = [46 # nothing: ["iam", "get_account_password_policy",{}],47 # bucket policy got48 # nothing: ["ecr", "get_repository_policy",{"repositoryName":"ecr_describe_repositories.json|.[] | .repositories[] | .repositoryName"}],49 # nothing in glacier50 # kms empty51]52#policy_53xcommands = [54# ["sns","list_topics",{}],55# ["sns","list_tags_for_resource",{"ResourceArn":"sns_list_topics.json|.[] |.Topics[]?|.TopicArn"}],56]57commands = [58# ["iam","get_account_authorization_details",{}],59# ["iam","list_account_aliases",{}],60# cert additions61["acm", "list_certificates",{}],62["acm", "list_tags_for_certificate",{"CertificateArn":"acm_list_certificates.json|.[] | .CertificateSummaryList | .[] | .CertificateArn"}],63# sns additions64["sns","list_topics",{}],65["sns","get_topic_attributes",{"TopicArn":"sns_list_topics.json|.[] |.Topics[]?|.TopicArn"}],66["sns", "list_subscriptions",{}],67["sns", "get_subscription_attributes",{"SubscriptionArn":"sns_list_subscriptions.json|.[] | .Subscriptions[] | .SubscriptionArn"}], # ok!68# ["sns", "list_platform_applications",{}], # useless, returns nothing69["secretsmanager","list_secrets",{}],70["secretsmanager","get_resource_policy",{"SecretId":"secretsmanager_list_secrets.json|.[]|.SecretList[]|.ARN"}], # not very useful... https:/​/​boto3.amazonaws.com/​v1/​documentation/​api/​latest/​reference/​services/​secretsmanager.html#SecretsManager.Client.get_resource_policy71# goes off name...72["s3","list_buckets",{}],73["s3","get_bucket_acl",{"Bucket":"s3_list_buckets.json|.[] | .Buckets[]?|.Name"}], # bucket id not in response :(74["s3", "get_bucket_policy", {"Bucket":"s3_list_buckets.json|.[]|.Buckets[]?|.Name"}], # no bucket id75["s3", "get_bucket_logging", {"Bucket":"s3_list_buckets.json|.[]|.Buckets[]?|.Name"}], # empty76["s3", "get_bucket_location", {"Bucket": "s3_list_buckets.json|.[]|.Buckets[]?|.Name"}], # no bucket id77["s3", "get_bucket_encryption", {"Bucket": "s3_list_buckets.json|.[]|.Buckets[]?|.Name"}], # empty78["s3","get_bucket_tagging",{"Bucket":"s3_list_buckets.json|.[] | .Buckets[] | .Name"}],79# new cool stuff!80["ecr", "describe_repositories",{}],81["lambda", "get_policy", {"FunctionName":"lambda_list_functions.json|.[] | .Functions[]? | .FunctionName"}],82# cool policy stuff!83["iam", "list_groups",{}],84["iam", "list_attached_group_policies",{"GroupName":"iam_list_groups.json|.[] | .Groups[] | .GroupName"}],85["iam", "list_users",{}],86["iam", "list_attached_user_policies",{"UserName":"iam_list_users.json|.[] | .Users[] | .UserName"}],87["iam", "list_roles",{}],88["iam", "list_attached_role_policies",{"RoleName":"iam_list_roles.json|.[] | .Roles[] | .RoleName"}],89["resourcegroupstaggingapi","get_resources",{}],90["route53","list_hosted_zones",{}],91["ec2","describe_vpcs",{}],92["ec2","describe_subnets",{}],93["ec2","describe_instances",{}],94["ec2","describe_volumes",{}],95["rds","describe_db_instances",{}],96["rds","describe_db_snapshots",{}],97["elb","describe_load_balancers",{}],98["elbv2","describe_load_balancers",{}],99["redshift","describe_clusters",{}],100["redshift","describe_cluster_subnet_groups",{}],101["sqs","list_queues",{}],102["ec2","describe_security_groups",{}],103["ec2","describe_network_interfaces",{}],104["ec2","describe_vpc_peering_connections",{}],105["autoscaling","describe_policies",{}],106["autoscaling","describe_auto_scaling_groups",{}],107["cloudformation","describe_stacks",{}],108["cloudfront","list_distributions",{}],109# ["cloudwatch","describe_alarms",['CompositeAlarms','MetricAlarms','ResponseMetadata']],110# ["config","describe_config_rules",['ConfigRules','ResponseMetadata']],111["ec2","describe_network_acls",{}],112["ec2","describe_route_tables",{}],113["ec2","describe_flow_logs",{}],114["ec2","describe_vpc_endpoint_connections",{}],115["ec2","describe_vpc_endpoints",{}],116["ecr","describe_repositories",{}],117["elasticache","describe_cache_clusters",{}],118["efs","describe_file_systems",{}],119# ["events","list_rules",['Rules','ResponseMetadata']],120# ["kms","list_keys",['Keys','Truncated','ResponseMetadata']],121["lambda","list_functions",{}],122["ecs","list_clusters",{}],123# ["logs","describe_destinations",['destinations','ResponseMetadata']],124# ["logs","describe_log_groups",['logGroups','ResponseMetadata']],125# ["logs","describe_resource_policies",['resourcePolicies','ResponseMetadata']],126# ["apigateway","get_rest_apis",['ResponseMetadata','items']],127# ["accessanalyzer","list_analyzers",['ResponseMetadata','analyzers']]...

Full Screen

Full Screen

literals.pyi

Source: literals.pyi Github

copy

Full Screen

1"""2Type annotations for logs service literal definitions.3[Open documentation](https:/​/​vemel.github.io/​boto3_stubs_docs/​mypy_boto3_logs/​literals.html)4Usage::5 ```python6 from mypy_boto3_logs.literals import DescribeDestinationsPaginatorName7 data: DescribeDestinationsPaginatorName = "describe_destinations"8 ```9"""10import sys11if sys.version_info >= (3, 8):12 from typing import Literal13else:14 from typing_extensions import Literal15__all__ = (16 "DescribeDestinationsPaginatorName",17 "DescribeExportTasksPaginatorName",18 "DescribeLogGroupsPaginatorName",19 "DescribeLogStreamsPaginatorName",20 "DescribeMetricFiltersPaginatorName",21 "DescribeQueriesPaginatorName",22 "DescribeResourcePoliciesPaginatorName",23 "DescribeSubscriptionFiltersPaginatorName",24 "DistributionType",25 "ExportTaskStatusCodeType",26 "FilterLogEventsPaginatorName",27 "OrderByType",28 "QueryStatusType",29 "StandardUnitType",30)31DescribeDestinationsPaginatorName = Literal["describe_destinations"]32DescribeExportTasksPaginatorName = Literal["describe_export_tasks"]33DescribeLogGroupsPaginatorName = Literal["describe_log_groups"]34DescribeLogStreamsPaginatorName = Literal["describe_log_streams"]35DescribeMetricFiltersPaginatorName = Literal["describe_metric_filters"]36DescribeQueriesPaginatorName = Literal["describe_queries"]37DescribeResourcePoliciesPaginatorName = Literal["describe_resource_policies"]38DescribeSubscriptionFiltersPaginatorName = Literal["describe_subscription_filters"]39DistributionType = Literal["ByLogStream", "Random"]40ExportTaskStatusCodeType = Literal[41 "CANCELLED", "COMPLETED", "FAILED", "PENDING", "PENDING_CANCEL", "RUNNING"42]43FilterLogEventsPaginatorName = Literal["filter_log_events"]44OrderByType = Literal["LastEventTime", "LogStreamName"]45QueryStatusType = Literal[46 "Cancelled", "Complete", "Failed", "Running", "Scheduled", "Timeout", "Unknown"47]48StandardUnitType = Literal[49 "Bits",50 "Bits/​Second",51 "Bytes",52 "Bytes/​Second",53 "Count",54 "Count/​Second",55 "Gigabits",56 "Gigabits/​Second",57 "Gigabytes",58 "Gigabytes/​Second",59 "Kilobits",60 "Kilobits/​Second",61 "Kilobytes",62 "Kilobytes/​Second",63 "Megabits",64 "Megabits/​Second",65 "Megabytes",66 "Megabytes/​Second",67 "Microseconds",68 "Milliseconds",69 "None",70 "Percent",71 "Seconds",72 "Terabits",73 "Terabits/​Second",74 "Terabytes",75 "Terabytes/​Second",...

Full Screen

Full Screen

Blogs

Check out the latest blogs from LambdaTest on this topic:

Are Agile Self-Managing Teams Realistic with Layered Management?

Agile software development stems from a philosophy that being agile means creating and responding to change swiftly. Agile means having the ability to adapt and respond to change without dissolving into chaos. Being Agile involves teamwork built on diverse capabilities, skills, and talents. Team members include both the business and software development sides working together to produce working software that meets or exceeds customer expectations continuously.

A Reconsideration of Software Testing Metrics

There is just one area where each member of the software testing community has a distinct point of view! Metrics! This contentious issue sparks intense disputes, and most conversations finish with no definitive conclusion. It covers a wide range of topics: How can testing efforts be measured? What is the most effective technique to assess effectiveness? Which of the many components should be quantified? How can we measure the quality of our testing performance, among other things?

Webinar: Building Selenium Automation Framework [Voices of Community]

Even though several frameworks are available in the market for automation testing, Selenium is one of the most renowned open-source frameworks used by experts due to its numerous features and benefits.

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful