コード例 #1
0
ファイル: MyStack.cs プロジェクト: justinvp/templates-aws
 public MyStack()
 {
     var example = new Aws.Glue.Connection("example", new Aws.Glue.ConnectionArgs
     {
         ConnectionProperties =
         {
             { "JDBC_CONNECTION_URL", "jdbc:mysql://example.com/exampledatabase" },
             { "PASSWORD",            "examplepassword"                          },
             { "USERNAME",            "exampleusername"                          },
         },
     });
 }
コード例 #2
0
ファイル: MyStack.cs プロジェクト: justinvp/templates-aws
 public MyStack()
 {
     var example = new Aws.Glue.Connection("example", new Aws.Glue.ConnectionArgs
     {
         ConnectionProperties =
         {
             { "JDBC_CONNECTION_URL", $"jdbc:mysql://{aws_rds_cluster.Example.Endpoint}/exampledatabase" },
             { "PASSWORD",            "examplepassword"                                                  },
             { "USERNAME",            "exampleusername"                                                  },
         },
         PhysicalConnectionRequirements = new Aws.Glue.Inputs.ConnectionPhysicalConnectionRequirementsArgs
         {
             AvailabilityZone    = aws_subnet.Example.Availability_zone,
             SecurityGroupIdList =
             {
                 aws_security_group.Example.Id,
             },
             SubnetId = aws_subnet.Example.Id,
         },
     });
 }