Ejemplo n.º 1
0
 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"]))
Ejemplo n.º 2
0
    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"
Ejemplo n.º 3
0
 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"])
Ejemplo n.º 4
0
 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"])
Ejemplo n.º 5
0
 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"]
         )
Ejemplo n.º 6
0
 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"])
Ejemplo n.º 7
0
 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"])
Ejemplo n.º 8
0
 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"])