MCPcopy Index your code

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

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

↓ 3,078 callersMethodload_policy
(self, data, *args, **kw)
tools/c7n_tencentcloud/tests/tc_common.py:28
↓ 2,163 callersMethodrun
(*args, **kw)
tests/test_executor.py:17
↓ 2,137 callersMethodreplay_flight_data
The `region` argument is to allow functional tests to override the default region. It is unused when replaying stored data.
tests/zpill.py:335
↓ 1,922 callersMethodget
(self, asg)
c7n/resources/asg.py:131
↓ 1,159 callersMethodclient
Safely initialize a repository class to a property. Args: repository_class (class): The class to initialize. version
tools/c7n_gcp/c7n_gcp/client.py:246
↓ 971 callersFunctiontype_schema
jsonschema generation helper params: - type_name: name of the type - inherits: list of document fragments that are required via anyOf[$
c7n/utils.py:165
↓ 932 callersFunctionlocal_session
Cache a session thread local for up to 45m
c7n/utils.py:324
↓ 824 callersMethodclient
(self)
c7n/mu.py:1034
↓ 737 callersMethodget
(self, k, default=None)
tools/c7n_left/c7n_left/core.py:407
↓ 695 callersMethodload_policy
Helper method to load a policy
tools/c7n_azure/tests_azure/tests_resources/test_entraid_simple.py:23
↓ 669 callersFunctionsession_factory
(mailer_config)
tools/c7n_mailer/c7n_mailer/utils.py:29
↓ 557 callersMethodjoin
(*parts)
tools/c7n_azure/c7n_azure/output.py:92
↓ 491 callersMethodformat
Format the report for output. If a source locator is specified, it is used to provide file and line number information for the policy
c7n/deprecated.py:255
↓ 475 callersMethodget
(name)
tests/test_mu.py:1522
↓ 395 callersMethodpatch
(self, obj, attr, new)
c7n/testing.py:128
↓ 392 callersMethodinfo
Check if a resource is locked. If a resource has an explicit status we use that, else we defer to the parent resource lock status.
tools/sandbox/c7n_sphere11/c7n_sphere11/db.py:56
↓ 372 callersMethodget
(self, params)
tools/c7n_azure/c7n_azure/provisioning/deployment_unit.py:19
↓ 371 callersMethodreplay_flight_data
(self, test_case, project_id=None)
tools/c7n_gcp/tests/gcp_common.py:114
↓ 362 callersMethodrun
Run the actual policy.
tools/c7n_azure/c7n_azure/policy.py:251
↓ 347 callersMethodrun
Execute a gcp serverless model
tools/c7n_gcp/c7n_gcp/policy.py:40
↓ 305 callersMethodaddCleanup
(self, func, *args, **kw)
tools/c7n_tencentcloud/tests/tc_common.py:12
↓ 290 callersFunctionfactory
(config)
c7n/cache.py:18
↓ 281 callersMethodupdate
(self, func)
c7n/mu.py:1464
↓ 263 callersMethodregister
(self, name, klass=None, condition=True, condition_message="Missing dependency for {}",
c7n/registry.py:48
↓ 246 callersMethodexception
(self)
c7n/executor.py:58
↓ 227 callersMethodget
(self, key)
c7n/cache.py:46
↓ 224 callersMethodget
(self, key)
tools/c7n_mailer/c7n_mailer/ldap_lookup.py:197
↓ 224 callersMethodsleep
(cls, duration)
tests/test_mu.py:323
↓ 202 callersMethoditems
(self)
tools/c7n_left/c7n_left/core.py:404
↓ 152 callersMethodrun
(self)
tools/c7n_left/c7n_left/test.py:24
↓ 151 callersMethodget_resource_manager
(self)
c7n/filters/related.py:57
↓ 145 callersMethodget_urns
Generate URNs for the resources. A Uniform Resource Name (URN) is a URI that identifies a resource by name in a particular namespace.
tools/c7n_gcp/c7n_gcp/query.py:424
↓ 138 callersMethoditems
(self)
c7n/resources/asg.py:138
↓ 137 callersFunctioninstance
(state=None, file="ec2-instance.json", **kw)
tests/common.py:153
↓ 134 callersMethodget
Get the details on a given function.
tools/c7n_gcp/c7n_gcp/mu.py:138
↓ 128 callersMethodexecute_query
Executes query (ex. get) via a dedicated http object. Args: verb (str): Method to execute on the component (ex. get, list).
tools/c7n_gcp/c7n_gcp/client.py:495
↓ 124 callersMethodwrite
(self, b)
c7n/testing.py:253
↓ 123 callersMethodget
(cls, event)
tools/c7n_azure/c7n_azure/azure_events.py:113
↓ 112 callersMethodread
(self, size)
tests/test_s3.py:1502
↓ 111 callersMethodempty
(cls, **kw)
c7n/config.py:29
↓ 110 callersMethodsubmit
Submit a function for serialized execution on sqs
c7n/sqsexec.py:43
↓ 109 callersFunctionchunks
Break an iterable into lists of size
c7n/utils.py:245
↓ 107 callersMethodfilter_resources
(self, rtype, resources)
tools/c7n_left/c7n_left/core.py:217
↓ 106 callersMethodvalues
(self)
c7n/registry.py:103
↓ 101 callersMethodkeys
(self)
c7n/registry.py:100
↓ 100 callersMethodfactory
(self, data, manager)
c7n/actions/core.py:27
↓ 99 callersMethodmatch
(self, resource, info)
c7n/resources/iam.py:1933
↓ 98 callersFunctionjmespath_search
(*args, **kwargs)
c7n/utils.py:1191
↓ 98 callersMethodnow
(cls, tz=None)
c7n/testing.py:283
↓ 96 callersMethodmatch
(self, result)
tools/c7n_left/c7n_left/test.py:133
↓ 93 callersMethodexecute_command
Executes command (ex. add) via a dedicated http object. Async APIs may take minutes to complete. Therefore, callers are encouraged to
tools/c7n_gcp/c7n_gcp/client.py:424
↓ 93 callersMethodsign_out_patch
()
tools/c7n_azure/tests_azure/azure_common.py:458
↓ 92 callersMethodget
(self, rule_name)
c7n/mu.py:1869
↓ 90 callersMethodget_client
(self, service=None, vault_url=None)
tools/c7n_azure/c7n_azure/query.py:251
↓ 90 callersMethodparse
cli option filtering support --filters "type=aws_sqs_queue,aws_rds_* policy=*encryption* severity=high"
tools/c7n_left/c7n_left/core.py:123
↓ 88 callersMethodinvoke
(self, cli, args=None, **kwargs)
tools/c7n_left/tests/conftest.py:17
↓ 86 callersMethodget_client
(self, session, model)
tools/c7n_gcp/c7n_gcp/actions/cscc.py:85
↓ 86 callersMethodkeys
(self)
tools/c7n_left/c7n_left/core.py:401
↓ 80 callersFunctionf
(*args, **kw)
tools/c7n_traildb/c7n_traildb/traildb.py:138
↓ 77 callersFunctionfilter
The filter has been superseded by another filter.
c7n/deprecated.py:56
↓ 77 callersMethodget
(client, resource_info)
tools/c7n_gcp/c7n_gcp/resources/iam.py:198
↓ 75 callersFunctionmock_datetime_now
(tgt, dt)
c7n/testing.py:271
↓ 74 callersMethodget_execution_mode
(self)
c7n/policy.py:1232
↓ 73 callersFunctionevent_data
(name, event_type="cwe")
tests/common.py:135
↓ 72 callersMethodresources
(self, query=None)
c7n/resources/rds.py:131
↓ 71 callersMethodclient
(self, client, vault_url=None)
tools/c7n_azure/c7n_azure/session.py:238
↓ 71 callersMethodoci_session_factory
(self, test_class=None, test_case=None)
tools/c7n_oci/tests/oci_flight_recorder.py:109
↓ 71 callersMethodresult
(self, timeout=None)
c7n/executor.py:64
↓ 71 callersMethodsearch
(self, value, options=None)
c7n/utils.py:1184
↓ 70 callersMethodadd
(self, keys)
c7n/resources/s3.py:2157
↓ 69 callersMethodget
(self, key)
tools/c7n_azure/tests_azure/test_resolver.py:22
↓ 69 callersMethodserialize
(self, cassette_dict)
tools/c7n_azure/tests_azure/azure_serializer.py:11
↓ 68 callersMethodadd
Default no-op
tools/c7n_gcp/c7n_gcp/mu.py:419
↓ 68 callersMethodpush
(self, event, context)
tests/test_handler.py:87
↓ 67 callersFunctionget_retry
Decorator for retry boto3 api call on transient errors. https://www.awsarchitectureblog.com/2015/03/backoff.html https://en.wikipedia.org/wik
c7n/utils.py:431
↓ 67 callersMethodutcnow
(cls)
c7n/utils.py:716
↓ 66 callersMethodassertFilter
f: filter data/spec i: instance v: expected value (true/false)
tests/test_filters.py:26
↓ 65 callersMethodfilter_resources
(self, resources)
c7n/tags.py:546
↓ 61 callersMethodcapture_logging
( self, name=None, level=logging.INFO, formatter=None, log_file=None )
c7n/testing.py:172
↓ 61 callersFunctionuniversal_augment
(self, resources)
c7n/tags.py:68
↓ 57 callersMethodprocess
(self, resources, event=None)
tools/c7n_azure/c7n_azure/filters.py:210
↓ 52 callersMethodget_arns
(self, resources)
c7n/resources/s3.py:453
↓ 50 callersMethodload
(self)
tools/c7n_azure/tests_azure/test_resolver.py:30
↓ 50 callersFunctionload_resources
(resource_types=('*',))
c7n/resources/__init__.py:11
↓ 49 callersMethodget_subscription_id
(self)
tools/c7n_azure/c7n_azure/session.py:305
↓ 49 callersMethodmap
(self, func, iterable)
c7n/executor.py:22
↓ 48 callersFunctionevent_data
(fname)
tools/c7n_gcp/tests/gcp_common.py:32
↓ 48 callersMethodget_default_project
(self)
tools/c7n_gcp/c7n_gcp/client.py:227
↓ 48 callersMethodremove
Default no-op
tools/c7n_gcp/c7n_gcp/mu.py:423
↓ 45 callersMethoddump
(self, path, sort="type")
tools/c7n_terraform/c7n_terraform/parser.py:241
↓ 45 callersMethodgenerate_arn
Sample arn: arn:aws:apigateway:us-east-1::/restapis/rest-api-id This method overrides c7n.utils.generate_arn and drops acc
c7n/resources/apigw.py:155
↓ 45 callersMethodget_resources
(self, query)
tools/c7n_oci/c7n_oci/query.py:41
↓ 45 callersMethodremove
(self, func, func_deleted=True)
c7n/mu.py:1919
↓ 44 callersMethodload_policy
Helper method to load a policy
tools/c7n_azure/tests_azure/tests_resources/test_entraid_simple.py:222
↓ 43 callersMethodget_client
(self)
tools/c7n_oci/c7n_oci/query.py:205
↓ 43 callersMethodget_temp_dir
Return a temporary directory that will get cleaned up.
c7n/testing.py:64
↓ 42 callersMethodcheck
(self, policy_text)
c7n/filters/iamaccess.py:99
↓ 42 callersMethoditems
(self)
c7n/registry.py:106
↓ 40 callersMethodprocess
(self, resources, event=None)
tests/test_filters.py:150
↓ 39 callersFunctionjmespath_compile
(expression)
c7n/utils.py:1215
next →1–100 of 11,956, ranked by callers