use of software.amazon.awssdk.services.codepipeline.CodePipelineClient in project aws-doc-sdk-examples by awsdocs.
the class CreatePipeline method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage: " + " <name> <roleArn> <s3Bucket> <s3OuputBucket>\n\n" + "Where:\n" + " name - the name of the pipeline to create. \n\n" + " roleArn - the Amazon Resource Name (ARN) for AWS CodePipeline to use. \n\n" + " s3Bucket - the name of the Amazon S3 bucket where the code is located. \n\n" + " s3OuputBucket - the name of the Amazon S3 bucket where the code is deployed. \n\n";
if (args.length != 4) {
System.out.println(USAGE);
System.exit(1);
}
String name = args[0];
String roleArn = args[1];
String s3Bucket = args[2];
String s3OuputBucket = args[3];
Region region = Region.US_EAST_1;
CodePipelineClient pipelineClient = CodePipelineClient.builder().region(region).build();
createNewPipeline(pipelineClient, name, roleArn, s3Bucket, s3OuputBucket);
pipelineClient.close();
}
use of software.amazon.awssdk.services.codepipeline.CodePipelineClient in project aws-doc-sdk-examples by awsdocs.
the class ListPipelines method main.
public static void main(String[] args) {
Region region = Region.US_EAST_1;
CodePipelineClient pipelineClient = CodePipelineClient.builder().region(region).build();
getAllPipelines(pipelineClient);
pipelineClient.close();
}
use of software.amazon.awssdk.services.codepipeline.CodePipelineClient in project aws-doc-sdk-examples by awsdocs.
the class DeletePipeline method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage: " + " <name>\n\n" + "Where:\n" + " name - the name of the pipeline to delete \n\n";
if (args.length != 1) {
System.out.println(USAGE);
System.exit(1);
}
String name = args[0];
Region region = Region.US_EAST_1;
CodePipelineClient pipelineClient = CodePipelineClient.builder().region(region).build();
deleteSpecificPipeline(pipelineClient, name);
pipelineClient.close();
}
use of software.amazon.awssdk.services.codepipeline.CodePipelineClient in project aws-doc-sdk-examples by awsdocs.
the class StartPipelineExecution method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage: " + " <name>\n\n" + "Where:\n" + " name - the name of the pipeline to execute \n\n";
if (args.length != 1) {
System.out.println(USAGE);
System.exit(1);
}
String name = args[0];
Region region = Region.US_EAST_1;
CodePipelineClient pipelineClient = CodePipelineClient.builder().region(region).build();
executePipeline(pipelineClient, name);
pipelineClient.close();
}
use of software.amazon.awssdk.services.codepipeline.CodePipelineClient in project aws-doc-sdk-examples by awsdocs.
the class ListPipelineExecutions method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage: " + " <name>\n\n" + "Where:\n" + " name - the name of the pipeline. \n\n";
if (args.length != 1) {
System.out.println(USAGE);
System.exit(1);
}
String name = args[0];
Region region = Region.US_EAST_1;
CodePipelineClient pipelineClient = CodePipelineClient.builder().region(region).build();
listExecutions(pipelineClient, name);
pipelineClient.close();
}
Aggregations