Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cloud-custodian/cloud-custodian
/ functions
Functions
11,956 in github.com/cloud-custodian/cloud-custodian
⨍
Functions
11,956
◇
Types & classes
4,595
↳
Endpoints
396
↓ 3,078 callers
Method
load_policy
(self, data, *args, **kw)
tools/c7n_tencentcloud/tests/tc_common.py:28
↓ 2,163 callers
Method
run
(*args, **kw)
tests/test_executor.py:17
↓ 2,137 callers
Method
replay_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 callers
Method
get
(self, asg)
c7n/resources/asg.py:131
↓ 1,159 callers
Method
client
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 callers
Function
type_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 callers
Function
local_session
Cache a session thread local for up to 45m
c7n/utils.py:324
↓ 824 callers
Method
client
(self)
c7n/mu.py:1034
↓ 737 callers
Method
get
(self, k, default=None)
tools/c7n_left/c7n_left/core.py:407
↓ 695 callers
Method
load_policy
Helper method to load a policy
tools/c7n_azure/tests_azure/tests_resources/test_entraid_simple.py:23
↓ 669 callers
Function
session_factory
(mailer_config)
tools/c7n_mailer/c7n_mailer/utils.py:29
↓ 557 callers
Method
join
(*parts)
tools/c7n_azure/c7n_azure/output.py:92
↓ 491 callers
Method
format
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 callers
Method
get
(name)
tests/test_mu.py:1522
↓ 395 callers
Method
patch
(self, obj, attr, new)
c7n/testing.py:128
↓ 392 callers
Method
info
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 callers
Method
get
(self, params)
tools/c7n_azure/c7n_azure/provisioning/deployment_unit.py:19
↓ 371 callers
Method
replay_flight_data
(self, test_case, project_id=None)
tools/c7n_gcp/tests/gcp_common.py:114
↓ 362 callers
Method
run
Run the actual policy.
tools/c7n_azure/c7n_azure/policy.py:251
↓ 347 callers
Method
run
Execute a gcp serverless model
tools/c7n_gcp/c7n_gcp/policy.py:40
↓ 305 callers
Method
addCleanup
(self, func, *args, **kw)
tools/c7n_tencentcloud/tests/tc_common.py:12
↓ 290 callers
Function
factory
(config)
c7n/cache.py:18
↓ 281 callers
Method
update
(self, func)
c7n/mu.py:1464
↓ 263 callers
Method
register
(self, name, klass=None, condition=True, condition_message="Missing dependency for {}",
c7n/registry.py:48
↓ 246 callers
Method
exception
(self)
c7n/executor.py:58
↓ 227 callers
Method
get
(self, key)
c7n/cache.py:46
↓ 224 callers
Method
get
(self, key)
tools/c7n_mailer/c7n_mailer/ldap_lookup.py:197
↓ 224 callers
Method
sleep
(cls, duration)
tests/test_mu.py:323
↓ 202 callers
Method
items
(self)
tools/c7n_left/c7n_left/core.py:404
↓ 152 callers
Method
run
(self)
tools/c7n_left/c7n_left/test.py:24
↓ 151 callers
Method
get_resource_manager
(self)
c7n/filters/related.py:57
↓ 145 callers
Method
get_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 callers
Method
items
(self)
c7n/resources/asg.py:138
↓ 137 callers
Function
instance
(state=None, file="ec2-instance.json", **kw)
tests/common.py:153
↓ 134 callers
Method
get
Get the details on a given function.
tools/c7n_gcp/c7n_gcp/mu.py:138
↓ 128 callers
Method
execute_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 callers
Method
write
(self, b)
c7n/testing.py:253
↓ 123 callers
Method
get
(cls, event)
tools/c7n_azure/c7n_azure/azure_events.py:113
↓ 112 callers
Method
read
(self, size)
tests/test_s3.py:1502
↓ 111 callers
Method
empty
(cls, **kw)
c7n/config.py:29
↓ 110 callers
Method
submit
Submit a function for serialized execution on sqs
c7n/sqsexec.py:43
↓ 109 callers
Function
chunks
Break an iterable into lists of size
c7n/utils.py:245
↓ 107 callers
Method
filter_resources
(self, rtype, resources)
tools/c7n_left/c7n_left/core.py:217
↓ 106 callers
Method
values
(self)
c7n/registry.py:103
↓ 101 callers
Method
keys
(self)
c7n/registry.py:100
↓ 100 callers
Method
factory
(self, data, manager)
c7n/actions/core.py:27
↓ 99 callers
Method
match
(self, resource, info)
c7n/resources/iam.py:1933
↓ 98 callers
Function
jmespath_search
(*args, **kwargs)
c7n/utils.py:1191
↓ 98 callers
Method
now
(cls, tz=None)
c7n/testing.py:283
↓ 96 callers
Method
match
(self, result)
tools/c7n_left/c7n_left/test.py:133
↓ 93 callers
Method
execute_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 callers
Method
sign_out_patch
()
tools/c7n_azure/tests_azure/azure_common.py:458
↓ 92 callers
Method
get
(self, rule_name)
c7n/mu.py:1869
↓ 90 callers
Method
get_client
(self, service=None, vault_url=None)
tools/c7n_azure/c7n_azure/query.py:251
↓ 90 callers
Method
parse
cli option filtering support --filters "type=aws_sqs_queue,aws_rds_* policy=*encryption* severity=high"
tools/c7n_left/c7n_left/core.py:123
↓ 88 callers
Method
invoke
(self, cli, args=None, **kwargs)
tools/c7n_left/tests/conftest.py:17
↓ 86 callers
Method
get_client
(self, session, model)
tools/c7n_gcp/c7n_gcp/actions/cscc.py:85
↓ 86 callers
Method
keys
(self)
tools/c7n_left/c7n_left/core.py:401
↓ 80 callers
Function
f
(*args, **kw)
tools/c7n_traildb/c7n_traildb/traildb.py:138
↓ 77 callers
Function
filter
The filter has been superseded by another filter.
c7n/deprecated.py:56
↓ 77 callers
Method
get
(client, resource_info)
tools/c7n_gcp/c7n_gcp/resources/iam.py:198
↓ 75 callers
Function
mock_datetime_now
(tgt, dt)
c7n/testing.py:271
↓ 74 callers
Method
get_execution_mode
(self)
c7n/policy.py:1232
↓ 73 callers
Function
event_data
(name, event_type="cwe")
tests/common.py:135
↓ 72 callers
Method
resources
(self, query=None)
c7n/resources/rds.py:131
↓ 71 callers
Method
client
(self, client, vault_url=None)
tools/c7n_azure/c7n_azure/session.py:238
↓ 71 callers
Method
oci_session_factory
(self, test_class=None, test_case=None)
tools/c7n_oci/tests/oci_flight_recorder.py:109
↓ 71 callers
Method
result
(self, timeout=None)
c7n/executor.py:64
↓ 71 callers
Method
search
(self, value, options=None)
c7n/utils.py:1184
↓ 70 callers
Method
add
(self, keys)
c7n/resources/s3.py:2157
↓ 69 callers
Method
get
(self, key)
tools/c7n_azure/tests_azure/test_resolver.py:22
↓ 69 callers
Method
serialize
(self, cassette_dict)
tools/c7n_azure/tests_azure/azure_serializer.py:11
↓ 68 callers
Method
add
Default no-op
tools/c7n_gcp/c7n_gcp/mu.py:419
↓ 68 callers
Method
push
(self, event, context)
tests/test_handler.py:87
↓ 67 callers
Function
get_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 callers
Method
utcnow
(cls)
c7n/utils.py:716
↓ 66 callers
Method
assertFilter
f: filter data/spec i: instance v: expected value (true/false)
tests/test_filters.py:26
↓ 65 callers
Method
filter_resources
(self, resources)
c7n/tags.py:546
↓ 61 callers
Method
capture_logging
( self, name=None, level=logging.INFO, formatter=None, log_file=None )
c7n/testing.py:172
↓ 61 callers
Function
universal_augment
(self, resources)
c7n/tags.py:68
↓ 57 callers
Method
process
(self, resources, event=None)
tools/c7n_azure/c7n_azure/filters.py:210
↓ 52 callers
Method
get_arns
(self, resources)
c7n/resources/s3.py:453
↓ 50 callers
Method
load
(self)
tools/c7n_azure/tests_azure/test_resolver.py:30
↓ 50 callers
Function
load_resources
(resource_types=('*',))
c7n/resources/__init__.py:11
↓ 49 callers
Method
get_subscription_id
(self)
tools/c7n_azure/c7n_azure/session.py:305
↓ 49 callers
Method
map
(self, func, iterable)
c7n/executor.py:22
↓ 48 callers
Function
event_data
(fname)
tools/c7n_gcp/tests/gcp_common.py:32
↓ 48 callers
Method
get_default_project
(self)
tools/c7n_gcp/c7n_gcp/client.py:227
↓ 48 callers
Method
remove
Default no-op
tools/c7n_gcp/c7n_gcp/mu.py:423
↓ 45 callers
Method
dump
(self, path, sort="type")
tools/c7n_terraform/c7n_terraform/parser.py:241
↓ 45 callers
Method
generate_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 callers
Method
get_resources
(self, query)
tools/c7n_oci/c7n_oci/query.py:41
↓ 45 callers
Method
remove
(self, func, func_deleted=True)
c7n/mu.py:1919
↓ 44 callers
Method
load_policy
Helper method to load a policy
tools/c7n_azure/tests_azure/tests_resources/test_entraid_simple.py:222
↓ 43 callers
Method
get_client
(self)
tools/c7n_oci/c7n_oci/query.py:205
↓ 43 callers
Method
get_temp_dir
Return a temporary directory that will get cleaned up.
c7n/testing.py:64
↓ 42 callers
Method
check
(self, policy_text)
c7n/filters/iamaccess.py:99
↓ 42 callers
Method
items
(self)
c7n/registry.py:106
↓ 40 callers
Method
process
(self, resources, event=None)
tests/test_filters.py:150
↓ 39 callers
Function
jmespath_compile
(expression)
c7n/utils.py:1215
next →
1–100 of 11,956, ranked by callers