def add_defaults(resource, stack_name: str): role_name = resource.get("Properties", {}).get("BucketName") if not role_name: resource["Properties"][ "BucketName"] = s3_listener.normalize_bucket_name( generate_default_name(stack_name, resource["LogicalResourceId"]))
def add_defaults(resource, stack_name: str): role_name = resource.get("Properties", {}).get("QueueName") if not role_name: resource["Properties"]["QueueName"] = generate_default_name( stack_name, resource["LogicalResourceId"]) if resource["Properties"].get("FifoQueue"): resource["Properties"]["QueueName"] += ".fifo"
def add_defaults(resource, stack_name): role_name = resource.get("Properties", {}).get("InstanceProfileName") if not role_name: resource["Properties"][ "InstanceProfileName"] = generate_default_name( stack_name, resource["LogicalResourceId"])
def add_defaults(resource, stack_name: str): role_name = resource.get("Properties", {}).get("ManagedPolicyName") if not role_name: resource["Properties"][ "ManagedPolicyName"] = generate_default_name( stack_name, resource["LogicalResourceId"])
def add_defaults(resource, stack_name: str): role_name = resource["Properties"].get("Name") if not role_name: resource["Properties"]["Name"] = generate_default_name( stack_name, resource["LogicalResourceId"] )
def add_defaults(resource, stack_name: str): name = resource.get("Properties", {}).get("LogStreamName") if not name: resource["Properties"]["LogStreamName"] = generate_default_name( stack_name, resource["LogicalResourceId"])
def add_defaults(resource, stack_name: str): func_name = resource.get("Properties", {}).get("FunctionName") if not func_name: resource["Properties"]["FunctionName"] = generate_default_name( stack_name, resource["LogicalResourceId"])
def add_defaults(resource, stack_name: str): role_name = resource.get("Properties", {}).get("ClusterIdentifier") if not role_name: resource["Properties"][ "ClusterIdentifier"] = generate_default_name( stack_name, resource["LogicalResourceId"])