com.pulumi.azurenative.awsconnector.S3Bucket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.S3BucketArgs;
import com.pulumi.azurenative.awsconnector.outputs.S3BucketPropertiesResponse;
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
* ### S3Buckets_CreateOrReplace
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.awsconnector.S3Bucket;
* import com.pulumi.azurenative.awsconnector.S3BucketArgs;
* import com.pulumi.azurenative.awsconnector.inputs.S3BucketPropertiesArgs;
* import com.pulumi.azurenative.awsconnector.inputs.AwsS3BucketPropertiesArgs;
* import com.pulumi.azurenative.awsconnector.inputs.AccelerateConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.BucketEncryptionArgs;
* import com.pulumi.azurenative.awsconnector.inputs.CorsConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.LifecycleConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.LoggingConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.TargetObjectKeyFormatArgs;
* import com.pulumi.azurenative.awsconnector.inputs.PartitionedPrefixArgs;
* import com.pulumi.azurenative.awsconnector.inputs.NotificationConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.EventBridgeConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.ObjectLockConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.ObjectLockRuleArgs;
* import com.pulumi.azurenative.awsconnector.inputs.DefaultRetentionArgs;
* import com.pulumi.azurenative.awsconnector.inputs.OwnershipControlsArgs;
* import com.pulumi.azurenative.awsconnector.inputs.PublicAccessBlockConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.ReplicationConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.VersioningConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.WebsiteConfigurationArgs;
* import com.pulumi.azurenative.awsconnector.inputs.RedirectAllRequestsToArgs;
* 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 s3Bucket = new S3Bucket("s3Bucket", S3BucketArgs.builder()
* .location("pesmjbocvf")
* .name("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
* .properties(S3BucketPropertiesArgs.builder()
* .arn("qoufjwcexyvk")
* .awsAccountId("rfckvyuni")
* .awsProperties(AwsS3BucketPropertiesArgs.builder()
* .accelerateConfiguration(AccelerateConfigurationArgs.builder()
* .accelerationStatus("Enabled")
* .build())
* .accessControl("AuthenticatedRead")
* .analyticsConfigurations(AnalyticsConfigurationArgs.builder()
* .id("ioxkjkuclx")
* .prefix("errquicjtmxuidndown")
* .storageClassAnalysis(StorageClassAnalysisArgs.builder()
* .dataExport(DataExportArgs.builder()
* .destination(DestinationArgs.builder()
* .bucketAccountId("sfgcxqtuacvejulm")
* .bucketArn("iuwuakbkkh")
* .format("CSV")
* .prefix("bnbqkueiiffpl")
* .build())
* .outputSchemaVersion("ojzzqnkekust")
* .build())
* .build())
* .tagFilters(TagFilterArgs.builder()
* .key("ffmzaifhmkmsljsm")
* .value("fsby")
* .build())
* .build())
* .arn("wdn")
* .bucketEncryption(BucketEncryptionArgs.builder()
* .serverSideEncryptionConfiguration(ServerSideEncryptionRuleArgs.builder()
* .bucketKeyEnabled(true)
* .serverSideEncryptionByDefault(ServerSideEncryptionByDefaultArgs.builder()
* .kmsMasterKeyID("mledejya")
* .sseAlgorithm("AES256")
* .build())
* .build())
* .build())
* .bucketName("qapantghvzujpa")
* .corsConfiguration(CorsConfigurationArgs.builder()
* .corsRules(CorsRuleArgs.builder()
* .allowedHeaders("zzooekoypz")
* .allowedMethods("DELETE")
* .allowedOrigins("tqldxbbws")
* .exposedHeaders("wjlikohhmisfgumcfzrnvg")
* .id("zvasxfnbnbpftihvtosdnlmskv")
* .maxAge(9)
* .build())
* .build())
* .domainName("vbhotuxputambztq")
* .dualStackDomainName("sryuphsbzszrwamvrcsihe")
* .intelligentTieringConfigurations(IntelligentTieringConfigurationArgs.builder()
* .id("dbqsgaw")
* .prefix("lhizynvczgfiqwaiyuqpvnd")
* .status("Disabled")
* .tagFilters(TagFilterArgs.builder()
* .key("ffmzaifhmkmsljsm")
* .value("fsby")
* .build())
* .tierings(TieringArgs.builder()
* .accessTier("ARCHIVE_ACCESS")
* .days(6)
* .build())
* .build())
* .inventoryConfigurations(InventoryConfigurationArgs.builder()
* .destination(DestinationArgs.builder()
* .bucketAccountId("sfgcxqtuacvejulm")
* .bucketArn("iuwuakbkkh")
* .format("CSV")
* .prefix("bnbqkueiiffpl")
* .build())
* .enabled(true)
* .id("yqyorzlpsfzzycfeqmdgtsstdze")
* .includedObjectVersions("All")
* .optionalFields("BucketKeyStatus")
* .prefix("tuzwyujzrv")
* .scheduleFrequency("Daily")
* .build())
* .lifecycleConfiguration(LifecycleConfigurationArgs.builder()
* .rules(RuleArgs.builder()
* .abortIncompleteMultipartUpload(AbortIncompleteMultipartUploadArgs.builder()
* .daysAfterInitiation(20)
* .build())
* .expirationDate("ruijzosqnherfgwbgzbiwau")
* .expirationInDays(8)
* .expiredObjectDeleteMarker(true)
* .id("aofbidgki")
* .noncurrentVersionExpiration(NoncurrentVersionExpirationArgs.builder()
* .newerNoncurrentVersions(4)
* .noncurrentDays(17)
* .build())
* .noncurrentVersionExpirationInDays(4)
* .noncurrentVersionTransition(NoncurrentVersionTransitionArgs.builder()
* .newerNoncurrentVersions(6)
* .storageClass("DEEP_ARCHIVE")
* .transitionInDays(8)
* .build())
* .noncurrentVersionTransitions(NoncurrentVersionTransitionArgs.builder()
* .newerNoncurrentVersions(6)
* .storageClass("DEEP_ARCHIVE")
* .transitionInDays(8)
* .build())
* .objectSizeGreaterThan("hfifjfbqvmtatza")
* .objectSizeLessThan("ew")
* .prefix("kbsmshvpardhxehfjgszomvekk")
* .status("Disabled")
* .tagFilters(TagFilterArgs.builder()
* .key("ffmzaifhmkmsljsm")
* .value("fsby")
* .build())
* .transition(TransitionArgs.builder()
* .storageClass("DEEP_ARCHIVE")
* .transitionDate("cqdrkqznucygxbnccuvxqbtnm")
* .transitionInDays(14)
* .build())
* .transitions(TransitionArgs.builder()
* .storageClass("DEEP_ARCHIVE")
* .transitionDate("cqdrkqznucygxbnccuvxqbtnm")
* .transitionInDays(14)
* .build())
* .build())
* .build())
* .loggingConfiguration(LoggingConfigurationArgs.builder()
* .destinationBucketName("aujj")
* .logFilePrefix("vdmmbfnvymowpvmhbsagekbokzvp")
* .targetObjectKeyFormat(TargetObjectKeyFormatArgs.builder()
* .partitionedPrefix(PartitionedPrefixArgs.builder()
* .partitionDateSource("DeliveryTime")
* .build())
* .build())
* .build())
* .metricsConfigurations(MetricsConfigurationArgs.builder()
* .accessPointArn("tkhjqpjfplj")
* .id("ggheleujxadbvbjogd")
* .prefix("zg")
* .tagFilters(TagFilterArgs.builder()
* .key("ffmzaifhmkmsljsm")
* .value("fsby")
* .build())
* .build())
* .notificationConfiguration(NotificationConfigurationArgs.builder()
* .eventBridgeConfiguration(EventBridgeConfigurationArgs.builder()
* .eventBridgeEnabled(true)
* .build())
* .lambdaConfigurations(LambdaConfigurationArgs.builder()
* .event("zpvewswtoarduycggotzdneptucwix")
* .filter(NotificationFilterArgs.builder()
* .s3Key(S3KeyFilterArgs.builder()
* .rules(FilterRuleArgs.builder()
* .name("ohgjzuamjncbifvbkldogxjuxvhvz")
* .value("dauvnhzxpkpqutnrl")
* .build())
* .build())
* .build())
* .function("zmyzygfaojliiryslfyuyme")
* .build())
* .queueConfigurations(QueueConfigurationArgs.builder()
* .event("qgcdpcvmkvjivvpvmmaeqrictlznb")
* .filter(NotificationFilterArgs.builder()
* .s3Key(S3KeyFilterArgs.builder()
* .rules(FilterRuleArgs.builder()
* .name("ohgjzuamjncbifvbkldogxjuxvhvz")
* .value("dauvnhzxpkpqutnrl")
* .build())
* .build())
* .build())
* .queue("qwlbvlgmwiaegulyybqggopf")
* .build())
* .topicConfigurations(TopicConfigurationArgs.builder()
* .event("kxl")
* .filter(NotificationFilterArgs.builder()
* .s3Key(S3KeyFilterArgs.builder()
* .rules(FilterRuleArgs.builder()
* .name("ohgjzuamjncbifvbkldogxjuxvhvz")
* .value("dauvnhzxpkpqutnrl")
* .build())
* .build())
* .build())
* .topic("cj")
* .build())
* .build())
* .objectLockConfiguration(ObjectLockConfigurationArgs.builder()
* .objectLockEnabled("aiocf")
* .rule(ObjectLockRuleArgs.builder()
* .defaultRetention(DefaultRetentionArgs.builder()
* .days(22)
* .mode("COMPLIANCE")
* .years(11)
* .build())
* .build())
* .build())
* .objectLockEnabled(true)
* .ownershipControls(OwnershipControlsArgs.builder()
* .rules(OwnershipControlsRuleArgs.builder()
* .objectOwnership("BucketOwnerEnforced")
* .build())
* .build())
* .publicAccessBlockConfiguration(PublicAccessBlockConfigurationArgs.builder()
* .blockPublicAcls(true)
* .blockPublicPolicy(true)
* .ignorePublicAcls(true)
* .restrictPublicBuckets(true)
* .build())
* .regionalDomainName("xdbzcoemgixrqq")
* .replicationConfiguration(ReplicationConfigurationArgs.builder()
* .role("rqafufwtmuflkqet")
* .rules(ReplicationRuleArgs.builder()
* .deleteMarkerReplication(DeleteMarkerReplicationArgs.builder()
* .status("Disabled")
* .build())
* .destination(ReplicationDestinationArgs.builder()
* .accessControlTranslation(AccessControlTranslationArgs.builder()
* .owner("smyptov")
* .build())
* .account("hwqiekzz")
* .bucket("prjlsmdhkwrputvpdavgn")
* .encryptionConfiguration(EncryptionConfigurationArgs.builder()
* .replicaKmsKeyID("uodgudyknqizofykjokpv")
* .build())
* .metrics(MetricsArgs.builder()
* .eventThreshold(ReplicationTimeValueArgs.builder()
* .minutes(18)
* .build())
* .status("Disabled")
* .build())
* .replicationTime(ReplicationTimeArgs.builder()
* .status("Disabled")
* .time(ReplicationTimeValueArgs.builder()
* .minutes(18)
* .build())
* .build())
* .storageClass("DEEP_ARCHIVE")
* .build())
* .filter(ReplicationRuleFilterArgs.builder()
* .and(ReplicationRuleAndOperatorArgs.builder()
* .prefix("rlralilpznxqfpcseysvvxmfaor")
* .tagFilters(TagFilterArgs.builder()
* .key("ffmzaifhmkmsljsm")
* .value("fsby")
* .build())
* .build())
* .prefix("etzfeufdxmcvjzpvxbjmzikok")
* .tagFilter(TagFilterArgs.builder()
* .key("ffmzaifhmkmsljsm")
* .value("fsby")
* .build())
* .build())
* .id("fjcfzahlddm")
* .prefix("agykvphwwnfevfucrxugxejv")
* .priority(20)
* .sourceSelectionCriteria(SourceSelectionCriteriaArgs.builder()
* .replicaModifications(ReplicaModificationsArgs.builder()
* .status("Disabled")
* .build())
* .sseKmsEncryptedObjects(SseKmsEncryptedObjectsArgs.builder()
* .status("Disabled")
* .build())
* .build())
* .status("Disabled")
* .build())
* .build())
* .tags(TagArgs.builder()
* .key("dxpeasomkyhulmxegodswwuhn")
* .value("otwjdamxqdydqwujwyfh")
* .build())
* .versioningConfiguration(VersioningConfigurationArgs.builder()
* .status("Enabled")
* .build())
* .websiteConfiguration(WebsiteConfigurationArgs.builder()
* .errorDocument("zxifnrlbyapkasrrhamdkdsqk")
* .indexDocument("umbhsxlihqldbh")
* .redirectAllRequestsTo(RedirectAllRequestsToArgs.builder()
* .hostName("sxmd")
* .protocol("http")
* .build())
* .routingRules(RoutingRuleArgs.builder()
* .redirectRule(RedirectRuleArgs.builder()
* .hostName("odmugwc")
* .httpRedirectCode("vfvnluyewsuhlybwzwsc")
* .protocol("http")
* .replaceKeyPrefixWith("khrrcydzrtwzttnlqrlvdqdj")
* .replaceKeyWith("axcwbdxqktfrrivec")
* .build())
* .routingRuleCondition(RoutingRuleConditionArgs.builder()
* .httpErrorCodeReturnedEquals("rajjyyktkunsenpficiiq")
* .keyPrefixEquals("tgzmwymptfxjolynmpwx")
* .build())
* .build())
* .build())
* .websiteURL("vtlwozcgstjkkmgfywinjoreomvw")
* .build())
* .awsRegion("kckriyydtrwdlelcuztzfeptvcbwj")
* .awsSourceSchema("kywnqkadqm")
* .awsTags(Map.of("key1337", "xopsufyohwwvrxsp"))
* .publicCloudConnectorsResourceId("i")
* .publicCloudResourceName("fmugqeeykklaccblyqplo")
* .build())
* .resourceGroupName("rgs3Bucket")
* .tags(Map.of("key8605", "s"))
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:awsconnector:S3Bucket xbupettah /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AwsConnector/s3Buckets/{name}
* ```
*
*/
@ResourceType(type="azure-native:awsconnector:S3Bucket")
public class S3Bucket 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={S3BucketPropertiesResponse.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* @Nullable */ Map> 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 S3Bucket(java.lang.String name) {
this(name, S3BucketArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public S3Bucket(java.lang.String name, S3BucketArgs 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 S3Bucket(java.lang.String name, S3BucketArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:awsconnector:S3Bucket", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private S3Bucket(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:awsconnector:S3Bucket", name, null, makeResourceOptions(options, id), false);
}
private static S3BucketArgs makeArgs(S3BucketArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? S3BucketArgs.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:S3Bucket").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 S3Bucket get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new S3Bucket(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy