All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.awsconnector.CodeBuildProject Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.awsconnector;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.awsconnector.CodeBuildProjectArgs;
import com.pulumi.azurenative.awsconnector.outputs.CodeBuildProjectPropertiesResponse;
import com.pulumi.azurenative.awsconnector.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * A Microsoft.AwsConnector resource
 * Azure REST API version: 2024-12-01.
 * 
 * ## Example Usage
 * ### CodeBuildProjects_CreateOrReplace
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.awsconnector.CodeBuildProject;
 * import com.pulumi.azurenative.awsconnector.CodeBuildProjectArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.CodeBuildProjectPropertiesArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.AwsCodeBuildProjectPropertiesArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ProjectArtifactsArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.BucketOwnerAccessEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ArtifactNamespaceEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ArtifactPackagingEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ArtifactsTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ProjectBadgeArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ProjectBuildBatchConfigArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.BatchReportModeTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.BatchRestrictionsArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ProjectCacheArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.CacheTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ProjectEnvironmentArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ComputeTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ProjectFleetArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ImagePullCredentialsTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.RegistryCredentialArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.CredentialProviderTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.EnvironmentTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.LogsConfigArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.CloudWatchLogsConfigArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.LogsConfigStatusTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.S3LogsConfigArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ProjectVisibilityTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.ProjectSourceArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.SourceAuthArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.SourceAuthTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.BuildStatusConfigArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.GitSubmodulesConfigArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.SourceTypeEnumValueArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.VpcConfigArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.WebhookArgs;
 * import com.pulumi.azurenative.awsconnector.inputs.WebhookBuildTypeEnumValueArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var codeBuildProject = new CodeBuildProject("codeBuildProject", CodeBuildProjectArgs.builder()
 *             .location("fpjpnhlms")
 *             .name("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
 *             .properties(CodeBuildProjectPropertiesArgs.builder()
 *                 .arn("ae")
 *                 .awsAccountId("caiac")
 *                 .awsProperties(AwsCodeBuildProjectPropertiesArgs.builder()
 *                     .arn("wwhfeljvmnwnqcgxusgnvoq")
 *                     .artifacts(ProjectArtifactsArgs.builder()
 *                         .artifactIdentifier("hcfdqzwleorpe")
 *                         .bucketOwnerAccess(BucketOwnerAccessEnumValueArgs.builder()
 *                             .value("FULL")
 *                             .build())
 *                         .encryptionDisabled(true)
 *                         .location("zvhsfl")
 *                         .name("dsqyinskfvabyktgjbszny")
 *                         .namespaceType(ArtifactNamespaceEnumValueArgs.builder()
 *                             .value("BUILD_ID")
 *                             .build())
 *                         .overrideArtifactName(true)
 *                         .packaging(ArtifactPackagingEnumValueArgs.builder()
 *                             .value("NONE")
 *                             .build())
 *                         .path("zbsfhzkoet")
 *                         .type(ArtifactsTypeEnumValueArgs.builder()
 *                             .value("CODEPIPELINE")
 *                             .build())
 *                         .build())
 *                     .badge(ProjectBadgeArgs.builder()
 *                         .badgeEnabled(true)
 *                         .badgeRequestUrl("ulpdsdbgtwm")
 *                         .build())
 *                     .buildBatchConfig(ProjectBuildBatchConfigArgs.builder()
 *                         .batchReportMode(BatchReportModeTypeEnumValueArgs.builder()
 *                             .value("REPORT_AGGREGATED_BATCH")
 *                             .build())
 *                         .combineArtifacts(true)
 *                         .restrictions(BatchRestrictionsArgs.builder()
 *                             .computeTypesAllowed("ievoltoldfrhkpv")
 *                             .maximumBuildsAllowed(15)
 *                             .build())
 *                         .serviceRole("lceqjutffrykpuzjxvijbzpames")
 *                         .timeoutInMins(3)
 *                         .build())
 *                     .cache(ProjectCacheArgs.builder()
 *                         .location("wgmqyjzlxsazecszvdkfr")
 *                         .modes("LOCAL_CUSTOM_CACHE")
 *                         .type(CacheTypeEnumValueArgs.builder()
 *                             .value("LOCAL")
 *                             .build())
 *                         .build())
 *                     .concurrentBuildLimit(19)
 *                     .created("2024-10-08T03:48:48.570Z")
 *                     .description("adnfxoh")
 *                     .encryptionKey("upseoicsvrwjjachlewnltupswc")
 *                     .environment(ProjectEnvironmentArgs.builder()
 *                         .certificate("olzbdlydjqzkzlflzxcdjjjv")
 *                         .computeType(ComputeTypeEnumValueArgs.builder()
 *                             .value("BUILD_GENERAL1_2XLARGE")
 *                             .build())
 *                         .environmentVariables(EnvironmentVariableArgs.builder()
 *                             .name("bmzlnmjzuxrxeemxfutykrlvemt")
 *                             .type(EnvironmentVariableTypeEnumValueArgs.builder()
 *                                 .value("PARAMETER_STORE")
 *                                 .build())
 *                             .value("eakfsmirkkwnizotyqqgmgjthn")
 *                             .build())
 *                         .fleet(ProjectFleetArgs.builder()
 *                             .fleetArn("brslcsjgupcpeistg")
 *                             .build())
 *                         .image("kkmioknmuhxurahmnjg")
 *                         .imagePullCredentialsType(ImagePullCredentialsTypeEnumValueArgs.builder()
 *                             .value("CODEBUILD")
 *                             .build())
 *                         .privilegedMode(true)
 *                         .registryCredential(RegistryCredentialArgs.builder()
 *                             .credential("rpnzfjdjuamclquyzquwicenfpefx")
 *                             .credentialProvider(CredentialProviderTypeEnumValueArgs.builder()
 *                                 .value("SECRETS_MANAGER")
 *                                 .build())
 *                             .build())
 *                         .type(EnvironmentTypeEnumValueArgs.builder()
 *                             .value("ARM_CONTAINER")
 *                             .build())
 *                         .build())
 *                     .fileSystemLocations(ProjectFileSystemLocationArgs.builder()
 *                         .identifier("tdquc")
 *                         .location("yeaotrzuhjtdtbfrlpvmlmaoqyioin")
 *                         .mountOptions("tocdlorjekugjotphpxuyebjj")
 *                         .mountPoint("fctmorvlmplsmeqvmavw")
 *                         .type(FileSystemTypeEnumValueArgs.builder()
 *                             .value("EFS")
 *                             .build())
 *                         .build())
 *                     .lastModified("2024-10-08T03:48:48.571Z")
 *                     .logsConfig(LogsConfigArgs.builder()
 *                         .cloudWatchLogs(CloudWatchLogsConfigArgs.builder()
 *                             .groupName("t")
 *                             .status(LogsConfigStatusTypeEnumValueArgs.builder()
 *                                 .value("DISABLED")
 *                                 .build())
 *                             .streamName("rrqzbaaicbiblat")
 *                             .build())
 *                         .s3Logs(S3LogsConfigArgs.builder()
 *                             .bucketOwnerAccess(BucketOwnerAccessEnumValueArgs.builder()
 *                                 .value("FULL")
 *                                 .build())
 *                             .encryptionDisabled(true)
 *                             .location("zuepwokmlymlvsvzjawzxe")
 *                             .status(LogsConfigStatusTypeEnumValueArgs.builder()
 *                                 .value("DISABLED")
 *                                 .build())
 *                             .build())
 *                         .build())
 *                     .name("budzhvktdvhxxy")
 *                     .projectVisibility(ProjectVisibilityTypeEnumValueArgs.builder()
 *                         .value("PRIVATE")
 *                         .build())
 *                     .publicProjectAlias("vstmzamjxtasdipcehcuwvfef")
 *                     .queuedTimeoutInMinutes(30)
 *                     .resourceAccessRole("st")
 *                     .secondaryArtifacts(ProjectArtifactsArgs.builder()
 *                         .artifactIdentifier("hcfdqzwleorpe")
 *                         .bucketOwnerAccess(BucketOwnerAccessEnumValueArgs.builder()
 *                             .value("FULL")
 *                             .build())
 *                         .encryptionDisabled(true)
 *                         .location("zvhsfl")
 *                         .name("dsqyinskfvabyktgjbszny")
 *                         .namespaceType(ArtifactNamespaceEnumValueArgs.builder()
 *                             .value("BUILD_ID")
 *                             .build())
 *                         .overrideArtifactName(true)
 *                         .packaging(ArtifactPackagingEnumValueArgs.builder()
 *                             .value("NONE")
 *                             .build())
 *                         .path("zbsfhzkoet")
 *                         .type(ArtifactsTypeEnumValueArgs.builder()
 *                             .value("CODEPIPELINE")
 *                             .build())
 *                         .build())
 *                     .secondarySourceVersions(ProjectSourceVersionArgs.builder()
 *                         .sourceIdentifier("kiyezlaophakaslamcsxpkzggoj")
 *                         .sourceVersion("zy")
 *                         .build())
 *                     .secondarySources(ProjectSourceArgs.builder()
 *                         .auth(SourceAuthArgs.builder()
 *                             .resource("oyfwquyzyjklbxlyjyddpmhmjgsgk")
 *                             .type(SourceAuthTypeEnumValueArgs.builder()
 *                                 .value("CODECONNECTIONS")
 *                                 .build())
 *                             .build())
 *                         .buildStatusConfig(BuildStatusConfigArgs.builder()
 *                             .context("zoghbponrxfhugrjzdheibkada")
 *                             .targetUrl("ooonrchy")
 *                             .build())
 *                         .buildspec("xxcoigvstisdhlfkfiblrgqhbtoqd")
 *                         .gitCloneDepth(9)
 *                         .gitSubmodulesConfig(GitSubmodulesConfigArgs.builder()
 *                             .fetchSubmodules(true)
 *                             .build())
 *                         .insecureSsl(true)
 *                         .location("owijjqkiwwegfcrynqcypho")
 *                         .reportBuildStatus(true)
 *                         .sourceIdentifier("lnhelescdeif")
 *                         .type(SourceTypeEnumValueArgs.builder()
 *                             .value("BITBUCKET")
 *                             .build())
 *                         .build())
 *                     .serviceRole("pydzdifzkz")
 *                     .source(ProjectSourceArgs.builder()
 *                         .auth(SourceAuthArgs.builder()
 *                             .resource("oyfwquyzyjklbxlyjyddpmhmjgsgk")
 *                             .type(SourceAuthTypeEnumValueArgs.builder()
 *                                 .value("CODECONNECTIONS")
 *                                 .build())
 *                             .build())
 *                         .buildStatusConfig(BuildStatusConfigArgs.builder()
 *                             .context("zoghbponrxfhugrjzdheibkada")
 *                             .targetUrl("ooonrchy")
 *                             .build())
 *                         .buildspec("xxcoigvstisdhlfkfiblrgqhbtoqd")
 *                         .gitCloneDepth(9)
 *                         .gitSubmodulesConfig(GitSubmodulesConfigArgs.builder()
 *                             .fetchSubmodules(true)
 *                             .build())
 *                         .insecureSsl(true)
 *                         .location("owijjqkiwwegfcrynqcypho")
 *                         .reportBuildStatus(true)
 *                         .sourceIdentifier("lnhelescdeif")
 *                         .type(SourceTypeEnumValueArgs.builder()
 *                             .value("BITBUCKET")
 *                             .build())
 *                         .build())
 *                     .sourceVersion("idpngofzedxghp")
 *                     .tags(TagArgs.builder()
 *                         .key("jcnahvslmrynzn")
 *                         .value("iqwximmqwgsjlwdgv")
 *                         .build())
 *                     .timeoutInMinutes(7)
 *                     .vpcConfig(VpcConfigArgs.builder()
 *                         .securityGroupIds("gcsqntkatjbigzj")
 *                         .build())
 *                     .webhook(WebhookArgs.builder()
 *                         .branchFilter("fpfnqs")
 *                         .buildType(WebhookBuildTypeEnumValueArgs.builder()
 *                             .value("BUILD")
 *                             .build())
 *                         .filterGroups(FilterGroupArgs.builder()
 *                             .webhookFilter(WebhookFilterArgs.builder()
 *                                 .excludeMatchedPattern(true)
 *                                 .pattern("ozqghxeblvksllu")
 *                                 .type(WebhookFilterTypeEnumValueArgs.builder()
 *                                     .value("ACTOR_ACCOUNT_ID")
 *                                     .build())
 *                                 .build())
 *                             .build())
 *                         .lastModifiedSecret("2024-10-08T03:48:48.574Z")
 *                         .payloadUrl("wzalmmzopccsfbgwhxjneakxazu")
 *                         .secret("mvic")
 *                         .url("lwkywiwhmmdrirvajnxo")
 *                         .build())
 *                     .build())
 *                 .awsRegion("rakioiwqsjhpjqekyjft")
 *                 .awsSourceSchema("ujnztglujzqehsvvd")
 *                 .awsTags(Map.of("key9822", "ryzmieviyiycjaaenwj"))
 *                 .publicCloudConnectorsResourceId("azzcclgcodhtl")
 *                 .publicCloudResourceName("tzylnhhjwtzngucgrkvklav")
 *                 .build())
 *             .resourceGroupName("rgcodeBuildProject")
 *             .tags(Map.of("key4761", "sranhogw"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:awsconnector:CodeBuildProject vxycsdfuepsiumuwerkphioygel /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AwsConnector/codeBuildProjects/{name} * ``` * */ @ResourceType(type="azure-native:awsconnector:CodeBuildProject") public class CodeBuildProject extends com.pulumi.resources.CustomResource { /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * The resource-specific properties for this resource. * */ @Export(name="properties", refs={CodeBuildProjectPropertiesResponse.class}, tree="[0]") private Output properties; /** * @return The resource-specific properties for this resource. * */ public Output properties() { return this.properties; } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ public Output systemData() { return this.systemData; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public CodeBuildProject(java.lang.String name) { this(name, CodeBuildProjectArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public CodeBuildProject(java.lang.String name, CodeBuildProjectArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public CodeBuildProject(java.lang.String name, CodeBuildProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:awsconnector:CodeBuildProject", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private CodeBuildProject(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:awsconnector:CodeBuildProject", name, null, makeResourceOptions(options, id), false); } private static CodeBuildProjectArgs makeArgs(CodeBuildProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? CodeBuildProjectArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:awsconnector/v20241201:CodeBuildProject").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static CodeBuildProject get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new CodeBuildProject(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy