MCPcopy Create free account

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

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

↓ 10 callersFunctionstrtobool
Convert a string representation of truth to true (1) or false (0). True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are '
c7n/vendored/distutils/util.py:10
↓ 10 callersMethodupdate_policies
Enumerate all policies from storage. Use the MD5 hashes in the enumerated policies and a local dictionary to decide if we sho
tools/c7n_azure/c7n_azure/container_host/host.py:109
↓ 10 callersMethodupload
(self)
tools/c7n_azure/c7n_azure/output.py:71
↓ 9 callersMethod_get_array
(self, k)
c7n/actions/network.py:143
↓ 9 callersFunction_parse_engine_version
Parse EngineVersion string into (engine_name, version) tuple Example inputs: - "redis-7.0" -> ("redis", "7.0") - "memcached-1.6.12" -> ("
c7n/resources/elasticache.py:647
↓ 9 callersMethodas_dict
(self)
tools/c7n_left/c7n_left/core.py:333
↓ 9 callersMethodclient
(self, group, version)
tools/c7n_kube/c7n_kube/client.py:31
↓ 9 callersMethoddata
(self, indent=2)
tools/c7n_policystream/policystream.py:125
↓ 9 callersMethoddelete
()
tests/test_rds.py:2005
↓ 9 callersMethodextract_params
(self, params)
tools/c7n_oci/c7n_oci/actions/base.py:61
↓ 9 callersFunctionformat_to_set
Formats lists and strings to sets. Strings return as a set with one string. Lists return as a set. Variables of other datatypes will retu
c7n/utils.py:1009
↓ 9 callersFunctiongenerateBucketContents
(s3, bucket, contents=None)
tests/test_s3.py:232
↓ 9 callersMethodget_email_to_addrs_from_uid
(self, uid, manager=False)
tools/c7n_mailer/c7n_mailer/ldap_lookup.py:77
↓ 9 callersMethodget_resource_types
Return the resource classes for the given type names
c7n/provider.py:53
↓ 9 callersMethodinitialize
(self, options)
tools/c7n_azure/c7n_azure/provider.py:38
↓ 9 callersMethodload
(self)
c7n/cache.py:43
↓ 9 callersFunctionnormalize_arn
Strip version or alias qualifiers from a Lambda function ARN.
c7n/mu.py:281
↓ 9 callersMethodprocess
(self, asgs)
c7n/resources/asg.py:1158
↓ 9 callersMethodprovision
(self)
tools/c7n_gcp/c7n_gcp/policy.py:74
↓ 9 callersMethodremove_tag
(self, resource)
tools/c7n_oci/c7n_oci/actions/base.py:102
↓ 9 callersMethodsend_message
(self, message, to_addrs)
tools/c7n_mailer/c7n_mailer/smtp_delivery.py:33
↓ 9 callersMethodtag_removed_from_resource
(self, original_tag_count, modified_tag_count)
tools/c7n_oci/c7n_oci/actions/base.py:148
↓ 9 callersMethodupdate_params
(self, resource, updated_resource_details)
tools/c7n_oci/c7n_oci/actions/base.py:66
↓ 9 callersFunctionyaml_load
(value)
c7n/utils.py:81
↓ 8 callersMethod__init__
(self, data, manager=None)
tools/c7n_azure/c7n_azure/resources/sqldatabase.py:682
↓ 8 callersMethod_file_exists
(files, name)
tools/c7n_azure/tests_azure/test_function_package.py:225
↓ 8 callersMethod_get_policy
(self, filters=[], actions=[], validate=False)
tools/c7n_azure/tests_azure/tests_resources/test_cost_management_export.py:90
↓ 8 callersMethod_get_subnet_details
(self, subnet)
tools/c7n_oci/tests/test_subnet.py:11
↓ 8 callersMethod_get_user_details
(self, identity_user)
tools/c7n_oci/tests/test_identity.py:239
↓ 8 callersMethod_get_vcn_details
(self, vcn)
tools/c7n_oci/tests/test_vcn.py:11
↓ 8 callersMethod_get_zone_details
(self, zone)
tools/c7n_oci/tests/test_zone.py:12
↓ 8 callersMethodadd_file
Add the file at ``src`` to the archive. If ``dest`` is ``None`` then it is added under just the original filename. So ``add_file('foo
c7n/mu.py:182
↓ 8 callersMethodas_resource
(self, name, data, type_name=None)
tools/c7n_left/c7n_left/providers/terraform/graph.py:57
↓ 8 callersMethodbuild_ports_dict
Build entire ports array filled with True (Allow), False (Deny) and None(default - Deny) based on the provided Network Security Group obj
tools/c7n_azure/c7n_azure/utils.py:385
↓ 8 callersMethodclient
(self)
tools/c7n_openstack/c7n_openstack/client.py:31
↓ 8 callersFunctiondestroyBucketIfPresent
(client, bucket)
tests/test_s3.py:227
↓ 8 callersMethodelements
Given a resource registry return sorted de-aliased values.
c7n/schema.py:586
↓ 8 callersFunctionformat_event
(evt)
c7n/utils.py:104
↓ 8 callersMethodget
(client, resource_info)
tools/c7n_gcp/c7n_gcp/resources/firestore.py:45
↓ 8 callersMethodget_client
(self, session, model)
tools/c7n_gcp/c7n_gcp/resources/compute.py:127
↓ 8 callersMethodget_ids
(cls, event, mode)
c7n/cwe.py:136
↓ 8 callersFunctionget_rendered_jinja
( target, sqs_message, resources, logger, specified_template, default_template, template_folders )
tools/c7n_mailer/c7n_mailer/utils.py:79
↓ 8 callersFunctionget_session
(role, region, session_name="c7n-log-exporter", session=None)
tools/c7n_logexporter/c7n_logexporter/exporter.py:342
↓ 8 callersMethodget_session
Get the session for this resource manager.
tools/c7n_azure/c7n_azure/resources/subscription.py:63
↓ 8 callersMethodget_storage_from_uri
(storage_uri)
tools/c7n_azure/c7n_azure/storage_utils.py:177
↓ 8 callersMethodheaders
(self)
c7n/reports/csvout.py:193
↓ 8 callersFunctionisoformat_datetime_str
standardize the date string, using isoformat including timezone info example: '2022-09-28T15:28:28+00:00'
tools/c7n_tencentcloud/c7n_tencentcloud/utils.py:20
↓ 8 callersFunctionnow
The datetime object for the current time in UTC
tools/c7n_azure/c7n_azure/utils.py:109
↓ 8 callersMethodparse_params
Takes resourceName (from a log) or selfLink (from a resource) and parses from it the parameters needed to make a request (project, region,
tools/c7n_gcp/c7n_gcp/resources/loadbalancer.py:31
↓ 8 callersFunctionreset_session_cache
()
c7n/utils.py:341
↓ 8 callersMethodrun
(self, *args, **kw)
c7n/policy.py:315
↓ 8 callersMethodselect
(self, selector, ctx)
c7n/output.py:44
↓ 8 callersMethodsetup_account
()
tools/c7n_azure/tests_azure/azure_common.py:449
↓ 8 callersMethodsleep_in_live_mode
(self, interval=60)
tools/c7n_azure/tests_azure/azure_common.py:444
↓ 8 callersMethodupdate
(self, data)
c7n/policy.py:1106
↓ 8 callersFunctionwrite_output_test_policy
(tmp_path, policy=None, policy_path="policy.json")
tools/c7n_left/tests/test_left.py:1365
↓ 7 callersMethod_build_ip_rules
(self, existing_ip, new_rules)
tools/c7n_azure/c7n_azure/actions/firewall.py:50
↓ 7 callersMethod_fetch_instance_validation_data
(self, resource_manager, subnet_id)
tools/c7n_oci/tests/test_subnet.py:16
↓ 7 callersMethod_fetch_instance_validation_data
(self, resource_manager, vcn_id)
tools/c7n_oci/tests/test_vcn.py:15
↓ 7 callersMethod_fetch_zone_validation_data
(self, resource_manager, zone_id)
tools/c7n_oci/tests/test_zone.py:16
↓ 7 callersMethod_gen_filter_data
(self, value, op='eq', value_regex=None, value_type=None, name='test-param')
tools/c7n_azure/tests_azure/tests_resources/test_postgresql_server.py:304
↓ 7 callersMethod_get_filter
(self, mode='equal')
tools/c7n_azure/tests_azure/tests_resources/test_cosmos_db.py:328
↓ 7 callersMethod_get_filter
(self, data, configurations)
tools/c7n_azure/tests_azure/tests_resources/test_postgresql_server.py:291
↓ 7 callersMethod_get_manager
The tests don't require real resource data or recordings, but they do need a valid manager with policy metadata so we just make one he
tests/test_webhook.py:294
↓ 7 callersMethod_get_service
(self, queue_name)
tools/c7n_azure/c7n_azure/storage_utils.py:94
↓ 7 callersMethod_make_filter
Helper to build a CrossAccountAccessFilter with a mock manager.
tests/test_iam.py:3224
↓ 7 callersMethod_policy_file_rev
(self, f, commit)
tools/c7n_policystream/policystream.py:347
↓ 7 callersMethod_pull_messages
(self, count=0)
tools/c7n_mailer/tests/test_gcp.py:26
↓ 7 callersFunction_run_cluster_method
(method, params, ignore=(), warn=(), method_name="")
c7n/resources/rdscluster.py:305
↓ 7 callersMethodassertName
(self, service, src, expected)
tools/c7n_gcp/tests/test_cscc.py:44
↓ 7 callersMethodaugment
(self, resources)
tools/c7n_azure/c7n_azure/query.py:89
↓ 7 callersFunctionazure_name_value_pair
(name, value)
tools/c7n_azure/c7n_azure/utils.py:115
↓ 7 callersMethodclose
(self)
c7n/cache.py:55
↓ 7 callersFunctioncomma_expand
(values)
tools/c7n_org/c7n_org/cli.py:246
↓ 7 callersMethodcompare_permissions
(user_permissions, permissions)
tools/c7n_azure/c7n_azure/resources/key_vault.py:222
↓ 7 callersMethoddate
(self)
tools/c7n_policystream/policystream.py:111
↓ 7 callersMethoddoc
Return 'best' formatted doc string for a given class. Walks up class hierarchy, skipping known bad. Returns empty string if no suitab
c7n/schema.py:631
↓ 7 callersMethodextract
(source, data=None)
c7n/lookup.py:40
↓ 7 callersMethodgen_schema
(self, resource_types)
c7n/loader.py:66
↓ 7 callersMethodget
(client, resource_info)
tools/c7n_gcp/c7n_gcp/resources/resourcemanager.py:124
↓ 7 callersMethodget_deprecations
Return any matching deprecations for the policy fields itself.
c7n/policy.py:1434
↓ 7 callersMethodget_emails_to_mimetext_map
(self, sqs_message)
tools/c7n_mailer/c7n_mailer/email_delivery.py:218
↓ 7 callersFunctionget_ext_ip
()
tools/c7n_azure/tests_azure/tests_resources/test_cosmos_db.py:16
↓ 7 callersMethodget_function_app_params
(self)
tools/c7n_azure/c7n_azure/policy.py:135
↓ 7 callersMethodget_manager
(self)
tests/test_filters.py:1676
↓ 7 callersMethodget_model
(cls)
c7n/query.py:498
↓ 7 callersMethodget_namespace
(resource_id)
tools/c7n_azure/c7n_azure/utils.py:35
↓ 7 callersMethodget_policy
(**kwargs)
tests/test_s3.py:4106
↓ 7 callersMethodget_resource_policy
(self, r)
c7n/resources/apigw.py:184
↓ 7 callersMethodget_s3_output
(self, output_url=None, cleanup=True, klass=S3Output)
tests/test_output.py:70
↓ 7 callersFunctionget_session
Get a boto3 sesssion potentially cross account sts assumed assumed sessions are automatically refreshed.
tools/c7n_salactus/c7n_salactus/worker.py:125
↓ 7 callersMethodget_session
(self)
tools/c7n_azure/c7n_azure/query.py:246
↓ 7 callersFunctiongroup_by
Return a mapping of key value to resources with the corresponding value. Key may be specified as dotted form for nested dictionary lookup
c7n/utils.py:228
↓ 7 callersMethodinitialize
(self, albs)
c7n/resources/appelb.py:727
↓ 7 callersMethodinitialize
(self, asgs)
c7n/resources/asg.py:77
↓ 7 callersMethodkeys
(self)
tools/c7n_policystream/policystream.py:229
↓ 7 callersMethodload_file
(self, path, resource_key)
c7n/data.py:86
↓ 7 callersMethodload_policy
Loads a YAML file and prompts scheduling updates :param path: Path to YAML file on disk :param policies: Dictionary of polici
tools/c7n_azure/c7n_azure/container_host/host.py:203
↓ 7 callersMethodlookup_type
(schema)
c7n/lookup.py:27
↓ 7 callersMethodmake_func
(self, **kw)
tests/test_mu.py:87
← previousnext →301–400 of 11,956, ranked by callers