Package com.pulumi.aws.codeconnections
Class Connection
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.codeconnections.Connection
-
public class Connection extends com.pulumi.resources.CustomResourceResource for managing an AWS CodeConnections Connection. > **NOTE:** The `aws.codeconnections.Connection` resource is created in the state `PENDING`. Authentication with the connection provider must be completed in the AWS Console. See the [AWS documentation](https://docs.aws.amazon.com/dtconsole/latest/userguide/connections-update.html) for details. ## Example Usage ### Basic Usage
## Import ### Identity Schema #### Required - `arn` (String) ARN of the CodeConnections connection. Using `pulumi import`, import CodeConnections connection using the ARN. For example: ```sh $ pulumi import aws:codeconnections/connection:Connection test-connection arn:aws:codeconnections:us-west-1:0123456789:connection/79d4d357-a2ee-41e4-b350-2fe39ae59448 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.codeconnections.Connection; import com.pulumi.aws.codeconnections.ConnectionArgs; import java.util.ArrayList; import java.util.Arrays; 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 Connection("example", ConnectionArgs.builder() .name("example-connection") .providerType("Bitbucket") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description Connection(java.lang.String name)Connection(java.lang.String name, ConnectionArgs args)Connection(java.lang.String name, ConnectionArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.String>connectionStatus()static Connectionget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ConnectionState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.lang.String>>hostArn()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>ownerAccountId()com.pulumi.core.Output<java.lang.String>providerType()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.util.Optional<ConnectionTimeouts>>timeouts()
-
-
-
Constructor Detail
-
Connection
public Connection(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Connection
public Connection(java.lang.String name, @Nullable ConnectionArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Connection
public Connection(java.lang.String name, @Nullable ConnectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The CodeConnections connection ARN.
-
connectionStatus
public com.pulumi.core.Output<java.lang.String> connectionStatus()
- Returns:
- The CodeConnections connection status. Possible values are `PENDING`, `AVAILABLE` and `ERROR`.
-
hostArn
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> hostArn()
- Returns:
- ARN of the host associated with the connection. Conflicts with `providerType`
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the connection to be created. The name must be unique in the calling AWS account. Changing `name` will create a new resource.
-
ownerAccountId
public com.pulumi.core.Output<java.lang.String> ownerAccountId()
-
providerType
public com.pulumi.core.Output<java.lang.String> providerType()
- Returns:
- The name of the external provider where your third-party code repository is configured. Changing `providerType` will create a new resource. Conflicts with `hostArn`.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Map of key-value resource tags to associate with the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
timeouts
public com.pulumi.core.Output<java.util.Optional<ConnectionTimeouts>> timeouts()
-
get
public static Connection get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ConnectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-