neptuneParameterGroupName() {
+ return this.neptuneParameterGroupName;
}
/**
* A subnet group to associate with this neptune instance. **NOTE:** This must match the `neptune_subnet_group_name` of the attached `aws.neptune.Cluster`.
diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/RoleAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/rds/RoleAssociation.java
index ec7d614837d..f58a83adbc3 100644
--- a/sdk/java/src/main/java/com/pulumi/aws/rds/RoleAssociation.java
+++ b/sdk/java/src/main/java/com/pulumi/aws/rds/RoleAssociation.java
@@ -21,43 +21,6 @@
*
* > To manage the RDS DB Instance IAM Role for [Enhanced Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html), see the `aws.rds.Instance` resource `monitoring_role_arn` argument instead.
*
- * ## Example Usage
- *
- * <!--Start PulumiCodeChooser -->
- *
- * {@code
- * package generated_program;
- *
- * import com.pulumi.Context;
- * import com.pulumi.Pulumi;
- * import com.pulumi.core.Output;
- * import com.pulumi.aws.rds.RoleAssociation;
- * import com.pulumi.aws.rds.RoleAssociationArgs;
- * 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 example = new RoleAssociation("example", RoleAssociationArgs.builder()
- * .dbInstanceIdentifier(exampleAwsDbInstance.identifier())
- * .featureName("S3_INTEGRATION")
- * .roleArn(exampleAwsIamRole.arn())
- * .build());
- *
- * }
- * }
- * }
- *
- * <!--End PulumiCodeChooser -->
- *
* ## Import
*
* Using `pulumi import`, import `aws_db_instance_role_association` using the DB Instance Identifier and IAM Role ARN separated by a comma (`,`). For example:
diff --git a/sdk/java/src/main/java/com/pulumi/aws/shield/ShieldFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/shield/ShieldFunctions.java
new file mode 100644
index 00000000000..e4175ee6729
--- /dev/null
+++ b/sdk/java/src/main/java/com/pulumi/aws/shield/ShieldFunctions.java
@@ -0,0 +1,491 @@
+// *** 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.aws.shield;
+
+import com.pulumi.aws.Utilities;
+import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+import com.pulumi.aws.shield.inputs.GetProtectionPlainArgs;
+import com.pulumi.aws.shield.outputs.GetProtectionResult;
+import com.pulumi.core.Output;
+import com.pulumi.core.TypeShape;
+import com.pulumi.deployment.Deployment;
+import com.pulumi.deployment.InvokeOptions;
+import java.util.concurrent.CompletableFuture;
+
+public final class ShieldFunctions {
+ /**
+ * Data source for managing an AWS Shield Protection.
+ *
+ * ## Example Usage
+ *
+ * ### Basic Usage
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .protectionId("abc123")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ * ### By Resource ARN
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .resourceArn("arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ */
+ public static Output getProtection() {
+ return getProtection(GetProtectionArgs.Empty, InvokeOptions.Empty);
+ }
+ /**
+ * Data source for managing an AWS Shield Protection.
+ *
+ * ## Example Usage
+ *
+ * ### Basic Usage
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .protectionId("abc123")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ * ### By Resource ARN
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .resourceArn("arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ */
+ public static CompletableFuture getProtectionPlain() {
+ return getProtectionPlain(GetProtectionPlainArgs.Empty, InvokeOptions.Empty);
+ }
+ /**
+ * Data source for managing an AWS Shield Protection.
+ *
+ * ## Example Usage
+ *
+ * ### Basic Usage
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .protectionId("abc123")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ * ### By Resource ARN
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .resourceArn("arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ */
+ public static Output getProtection(GetProtectionArgs args) {
+ return getProtection(args, InvokeOptions.Empty);
+ }
+ /**
+ * Data source for managing an AWS Shield Protection.
+ *
+ * ## Example Usage
+ *
+ * ### Basic Usage
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .protectionId("abc123")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ * ### By Resource ARN
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .resourceArn("arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ */
+ public static CompletableFuture getProtectionPlain(GetProtectionPlainArgs args) {
+ return getProtectionPlain(args, InvokeOptions.Empty);
+ }
+ /**
+ * Data source for managing an AWS Shield Protection.
+ *
+ * ## Example Usage
+ *
+ * ### Basic Usage
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .protectionId("abc123")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ * ### By Resource ARN
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .resourceArn("arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ */
+ public static Output getProtection(GetProtectionArgs args, InvokeOptions options) {
+ return Deployment.getInstance().invoke("aws:shield/getProtection:getProtection", TypeShape.of(GetProtectionResult.class), args, Utilities.withVersion(options));
+ }
+ /**
+ * Data source for managing an AWS Shield Protection.
+ *
+ * ## Example Usage
+ *
+ * ### Basic Usage
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .protectionId("abc123")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ * ### By Resource ARN
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * package generated_program;
+ *
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.aws.shield.ShieldFunctions;
+ * import com.pulumi.aws.shield.inputs.GetProtectionArgs;
+ * 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) {
+ * final var example = ShieldFunctions.getProtection(GetProtectionArgs.builder()
+ * .resourceArn("arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh")
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
+ */
+ public static CompletableFuture getProtectionPlain(GetProtectionPlainArgs args, InvokeOptions options) {
+ return Deployment.getInstance().invokeAsync("aws:shield/getProtection:getProtection", TypeShape.of(GetProtectionResult.class), args, Utilities.withVersion(options));
+ }
+}
diff --git a/sdk/java/src/main/java/com/pulumi/aws/shield/inputs/GetProtectionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/shield/inputs/GetProtectionArgs.java
new file mode 100644
index 00000000000..6aff754005f
--- /dev/null
+++ b/sdk/java/src/main/java/com/pulumi/aws/shield/inputs/GetProtectionArgs.java
@@ -0,0 +1,120 @@
+// *** 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.aws.shield.inputs;
+
+import com.pulumi.core.Output;
+import com.pulumi.core.annotations.Import;
+import java.lang.String;
+import java.util.Objects;
+import java.util.Optional;
+import javax.annotation.Nullable;
+
+
+public final class GetProtectionArgs extends com.pulumi.resources.InvokeArgs {
+
+ public static final GetProtectionArgs Empty = new GetProtectionArgs();
+
+ /**
+ * Unique identifier for the protection.
+ *
+ */
+ @Import(name="protectionId")
+ private @Nullable Output protectionId;
+
+ /**
+ * @return Unique identifier for the protection.
+ *
+ */
+ public Optional