Skip to content

boolean_smtp_aws_enable_imds_role_source

Filters whether BooleanSMTP probes the EC2 IMDSv2 endpoint for an IAM role.

filter Tier B Since 1.0.0

Signature

add_filter( 'boolean_smtp_aws_enable_imds_role_source', $callback, 10, 1 );

Parameters

ParameterTypeDescription
$enabledboolWhether the probe is currently enabled by constant or environment variable. Return true to enable it.

Returns bool — The filtered value.

Fires in

Example

boolean_smtp_aws_enable_imds_role_source.php
add_filter( 'boolean_smtp_aws_enable_imds_role_source', function ( bool $enabled ) {
return $enabled;
}, 10, 1 );

Next steps