示例#1
0
 public static CloudFormationObject And(ACloudFormationExpression left, ACloudFormationExpression right) => new CloudFormationObject
 {
     ["Fn::And"] = new CloudFormationList {
         left,
         right
     }
 };
示例#2
0
 public static CloudFormationObject Sub(string formatString, ACloudFormationExpression parameters) => new CloudFormationObject
 {
     ["Fn::Sub"] = new CloudFormationList {
         Literal(formatString),
         parameters
     }
 };
示例#3
0
 public static CloudFormationObject Split(string delimiter, ACloudFormationExpression value) => new CloudFormationObject
 {
     ["Fn::Split"] = new CloudFormationList {
         Literal(delimiter),
         value
     }
 };
示例#4
0
 public static CloudFormationObject Select(int index, ACloudFormationExpression list) => new CloudFormationObject
 {
     ["Fn::Select"] = new CloudFormationList {
         Literal(index),
         list
     }
 };
示例#5
0
 public static CloudFormationObject Equals(ACloudFormationExpression left, ACloudFormationExpression right) => new CloudFormationObject
 {
     ["Fn::Equals"] = new CloudFormationList {
         left,
         right
     }
 };
示例#6
0
 public static CloudFormationObject If(string condition, ACloudFormationExpression ifTrue, ACloudFormationExpression ifFalse) => new CloudFormationObject
 {
     ["Fn::If"] = new CloudFormationList {
         Literal(condition),
         ifTrue,
         ifFalse
     }
 };
示例#7
0
 public static CloudFormationObject ImportValue(ACloudFormationExpression expression) => new CloudFormationObject
 {
     ["Fn::ImportValue"] = new CloudFormationList {
         expression
     }
 };
示例#8
0
 public static CloudFormationObject Not(ACloudFormationExpression expression) => new CloudFormationObject
 {
     ["Fn::Not"] = new CloudFormationList {
         expression
     }
 };
示例#9
0
 //--- Constructors ---
 public KeyValuePair(string key, ACloudFormationExpression value)
 {
     Key   = key;
     Value = value;
 }