MCPcopy Create free account

hub / github.com/cloud-custodian/cloud-custodian / functions

Functions11,956 in github.com/cloud-custodian/cloud-custodian

↓ 38 callersMethodcopy
(self, **kw)
c7n/config.py:22
↓ 38 callersMethoditer_filters
(self, block_end=False)
c7n/policy.py:1136
↓ 37 callersMethodget_values
(self)
c7n/resolver.py:210
↓ 36 callersMethodequal
(a, b, case_insensitive=True)
tools/c7n_azure/c7n_azure/utils.py:82
↓ 36 callersMethodexecute
(cls, *args, **kw)
tests/test_executor.py:21
↓ 36 callersMethodget_model
(self)
c7n/resources/apigw.py:54
↓ 36 callersMethodget_resource
(self, resource_info)
tools/c7n_gcp/c7n_gcp/query.py:183
↓ 36 callersMethodvalidate
(self)
tests/test_handler.py:84
↓ 34 callersFunctionget_default_project
()
tools/c7n_gcp/c7n_gcp/client.py:74
↓ 34 callersMethodget_resource
(self, resource_info)
tools/c7n_oci/c7n_oci/query.py:221
↓ 33 callersMethodget_credentials
(self)
tools/c7n_azure/c7n_azure/session.py:301
↓ 33 callersMethodprocess
(self, resources)
tests/test_policy.py:46
↓ 33 callersFunctionshape_validate
(params, shape_name, service)
c7n/resources/aws.py:160
↓ 32 callersMethodget_policy
(resource, filters=None, actions=None)
tools/c7n_oci/tests/test_identity.py:467
↓ 32 callersMethodrecord_flight_data
(self, test_case, project_id=None)
tools/c7n_gcp/tests/gcp_common.py:99
↓ 32 callersMethodsubscribe
(self, func)
c7n/registry.py:45
↓ 31 callersMethodparse
(cls, arn)
c7n/resources/aws.py:309
↓ 31 callersMethodpublish
(self, func, alias=None, role=None, s3_uri=None)
c7n/mu.py:400
↓ 29 callersMethodfind
Find returns the file and line number for the policy.
c7n/loader.py:155
↓ 29 callersFunctionparse_date
(datetime_text)
tools/sandbox/c7n_sphere11/c7n_sphere11/admin.py:178
↓ 29 callersMethodput_metric
(self, key, value, unit, buffer=True, **dimensions)
c7n/output.py:264
↓ 28 callersMethodexecute_query
Call the client method and get the resources. :param action: The name of the action to be performed :param params: dict, que
tools/c7n_tencentcloud/c7n_tencentcloud/client.py:56
↓ 28 callersMethodis_runnable
(self, event=None)
c7n/policy.py:1209
↓ 27 callersMethodadd_contents
Add file contents to the archive under ``dest``. If ``dest`` is a path, it will be added compressed and world-readable (user-writeabl
c7n/mu.py:212
↓ 27 callersMethodget_permissions
(self)
tools/c7n_gcp/c7n_gcp/region.py:39
↓ 26 callersFunctionbucket_client
(session, b, kms=False)
c7n/resources/s3.py:655
↓ 26 callersMethodgroup
(self, resources)
c7n/filters/core.py:1067
↓ 26 callersMethodsession_factory
(cls)
c7n/policy.py:214
↓ 26 callersMethodto_dict
(self)
tools/sandbox/zerodark/zerodark/flowrecord.py:128
↓ 26 callersMethodwrite_policy
(self, policy, path="policy.json")
tools/c7n_left/tests/test_left.py:107
↓ 25 callersMethoddatetime
(self)
c7n/utils.py:712
↓ 25 callersMethodget_graph_resources
Get resources from Microsoft Graph API for use with GraphSource.
tools/c7n_azure/c7n_azure/resources/entraid_user.py:81
↓ 25 callersMethodload_resource_manager
(self)
c7n/policy.py:1401
↓ 25 callersMethodmake_graph_request
Make a request to Microsoft Graph API with minimum required permissions.
tools/c7n_azure/c7n_azure/graph_utils.py:140
↓ 24 callersMethodget_parent_annotation_key
(cls)
tools/c7n_gcp/c7n_gcp/query.py:488
↓ 24 callersMethodget_resource_name
(resource_id)
tools/c7n_azure/c7n_azure/utils.py:62
↓ 24 callersMethodreplay_flight_data
(self, name=None)
tools/c7n_kube/tests/common_kube.py:56
↓ 24 callersMethodrun_and_expect_failure
Run cli.main() with supplied argv and expect exit_code.
tests/test_cli.py:59
↓ 23 callersMethodget_function
(self, events=(), factory=None, **kw)
tools/c7n_gcp/tests/test_mu_gcp.py:27
↓ 23 callersFunctionload_data
(file_name, state=None, **kw)
tests/common.py:140
↓ 23 callersMethodwrite_policy_file
Write a policy file to disk in the specified format. Input a dictionary and a format. Valid formats are `yaml` and `json` Returns th
c7n/testing.py:47
↓ 23 callersMethodwrite_tf
(self, content, path="main.tf")
tools/c7n_left/tests/test_left.py:103
↓ 22 callersMethodfilter
(self, r)
tools/c7n_org/c7n_org/cli.py:174
↓ 22 callersMethodget_resource_manager
(self, resource_type, data=None)
tools/c7n_left/c7n_left/core.py:369
↓ 22 callersMethodinstances
(self)
tests/test_filters.py:1335
↓ 21 callersMethodget
Get resources by identities
c7n/query.py:79
↓ 21 callersMethodget_resources_by_type
(self, types=())
tools/c7n_left/c7n_left/core.py:421
↓ 21 callersMethodload_resource
(self, item)
c7n/query.py:361
↓ 21 callersFunctionparse_date
Handle various permutations of a datetime serialization to a datetime with the given timezone. Handles strings, seconds since epoch, and mill
c7n/utils.py:121
↓ 21 callersMethodvalidate
(self, data)
c7n/structure.py:24
↓ 20 callersMethod_query_rules
(self, resource)
tools/c7n_azure/tests_azure/test_firewall_rules_filter.py:167
↓ 20 callersFunctiondumps
(data, fh=None, indent=0)
c7n/utils.py:97
↓ 20 callersMethodexecute_in_parallel
(resources, event, execution_method, executor_factory, log, max_workers=constants.
tools/c7n_azure/c7n_azure/utils.py:167
↓ 20 callersMethodexpand_variables
Expand variables in policy data. Updates the policy data in-place.
c7n/policy.py:1313
↓ 20 callersMethodflush
(self)
tools/c7n_oci/c7n_oci/log.py:126
↓ 20 callersMethodget_resource_group
(resource_id)
tools/c7n_azure/c7n_azure/utils.py:44
↓ 20 callersMethodget_resource_value
(self, resource)
c7n/filters/core.py:953
↓ 20 callersMethodget_source
(self, source_type)
tools/c7n_oci/c7n_oci/query.py:198
↓ 20 callersMethodinsert
(self, records)
tools/c7n_traildb/c7n_traildb/traildb.py:99
↓ 19 callersMethodassertJmes
(self, expr, instance, expected)
c7n/testing.py:205
↓ 19 callersMethodget_defined_tag_value
(self, tag_details)
tools/c7n_oci/tests/oci_common.py:25
↓ 19 callersMethodget_event
(self, name)
tools/c7n_kube/tests/common_kube.py:50
↓ 19 callersMethodis_scope
(self, scope, scope_type)
tools/c7n_azure/c7n_azure/resources/access_control.py:372
↓ 19 callersMethodload_policy
Helper method to load a policy
tools/c7n_azure/tests_azure/tests_resources/test_entraid_simple.py:298
↓ 19 callersMethodrun_and_expect_success
Run cli.main() with supplied argv and expect normal execution.
tests/test_cli.py:44
↓ 19 callersMethodvalidate
(self)
tools/c7n_gcp/c7n_gcp/policy.py:83
↓ 18 callersMethodadd
(self, func, existing)
c7n/mu.py:1894
↓ 18 callersMethodassert_items
(self, result, expected)
tests/test_mu.py:112
↓ 18 callersMethodfilter
Query a set of resources, using us-east-1 for CLOUDFRONT scope.
c7n/resources/waf.py:27
↓ 18 callersMethodget_resources
(self, ids, cache=True)
c7n/resources/sqs.py:116
↓ 18 callersMethodsetup_run_dir
(self, accounts=None, policies=None)
tools/c7n_org/tests/test_org.py:74
↓ 18 callersMethodtag_count
(self, resource)
tools/c7n_oci/c7n_oci/actions/base.py:136
↓ 18 callersMethodwait
(self, duration=15)
tools/c7n_oci/tests/oci_common.py:32
↓ 17 callersMethodclient
client
tools/c7n_tencentcloud/c7n_tencentcloud/client.py:218
↓ 17 callersMethodcreate_queue
(self, queue_name)
tools/c7n_azure/c7n_azure/storage_utils.py:49
↓ 17 callersFunctionformat_string_values
Format all string values in an object. Return the updated object
c7n/utils.py:592
↓ 17 callersMethodget_tag_value
Get the resource's tag value.
tools/c7n_azure/c7n_azure/tags.py:71
↓ 17 callersMethodload_data
(self, policy_data, file_uri, validate=None, session_factory=None, config=None)
c7n/loader.py:112
↓ 17 callersFunctionrun_policy
(policy, terraform_dir, tmp_path)
tools/c7n_left/tests/test_left.py:72
↓ 17 callersMethodstart
(self, flight_data)
tests/test_rds.py:2021
↓ 17 callersMethodtitle
(self)
tools/c7n_left/c7n_left/core.py:96
↓ 16 callersMethod_get_instance_details
(self, instance)
tools/c7n_oci/tests/test_instance.py:14
↓ 16 callersMethod_process_resource
(self, resource)
tools/c7n_azure/tests_azure/test_base_action.py:108
↓ 16 callersFunctionassumed_session
STS Role assume a boto3.Session With automatic credential renewal. Args: role_arn: iam role arn to assume session_name: client s
c7n/credentials.py:113
↓ 16 callersFunctionfilter_empty
(d)
c7n/utils.py:108
↓ 16 callersMethodformat_resource
(self, r)
c7n/resources/iam.py:2458
↓ 16 callersMethodget_events
(self, session_factory)
c7n/mu.py:962
↓ 16 callersFunctionget_ip_rules
(ip_str)
tools/c7n_azure/tests_azure/tests_resources/test_cosmos_db.py:32
↓ 16 callersMethodreplay_flight_data
(self, name=None)
tools/c7n_openstack/tests/common_openstack.py:41
↓ 16 callersMethodsubsegment
Create a named subsegment as a context manager
c7n/output.py:98
↓ 15 callersMethodadd_tags
(tag_action, resource, tags_to_add)
tools/c7n_azure/c7n_azure/tags.py:47
↓ 15 callersMethodaugment
(self, jobs)
c7n/resources/sagemaker.py:80
↓ 15 callersMethodclose
(self)
tools/c7n_oci/c7n_oci/log.py:129
↓ 15 callersMethodcommit
(self, msg, author=None, email=None)
tools/c7n_policystream/tests/test_policystream.py:73
↓ 15 callersMethodexecute_paged_query
Call the client method and get the resource, the paging query is automatically filled.
tools/c7n_tencentcloud/c7n_tencentcloud/client.py:69
↓ 15 callersMethodfetch_validation_data
(self, resource_manager, operation, resource_id)
tools/c7n_oci/tests/oci_common.py:36
↓ 15 callersMethodget_mock_blob
(name, md5)
tools/c7n_azure/tests_azure/tests_resources/test_container_host.py:630
↓ 15 callersMethodget_model
(self)
tools/c7n_kube/c7n_kube/query.py:86
↓ 15 callersFunctionget_policy
(actions=None, filters=None)
tools/c7n_gcp/tests/test_gcp_labels.py:8
↓ 15 callersFunctionget_region
Tries to get the bucket region from Location.LocationConstraint Special cases: LocationConstraint EU defaults to eu-west-1 Locati
c7n/resources/s3.py:710
← previousnext →101–200 of 11,956, ranked by callers