Class SecurityGroupState.Builder

  • Enclosing class:
    SecurityGroupState

    public static final class SecurityGroupState.Builder
    extends java.lang.Object
    • Method Detail

      • arn

        public SecurityGroupState.Builder arn​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the security group.
        Returns:
        builder
      • arn

        public SecurityGroupState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the security group.
        Returns:
        builder
      • description

        public SecurityGroupState.Builder description​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Security group description. Defaults to `Managed by Pulumi`. Cannot be `""`. **NOTE**: This field maps to the AWS `GroupDescription` attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use `tags`.
        Returns:
        builder
      • description

        public SecurityGroupState.Builder description​(java.lang.String description)
        Parameters:
        description - Security group description. Defaults to `Managed by Pulumi`. Cannot be `""`. **NOTE**: This field maps to the AWS `GroupDescription` attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use `tags`.
        Returns:
        builder
      • egress

        public SecurityGroupState.Builder egress​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<SecurityGroupEgressArgs>> egress)
        Parameters:
        egress - Configuration block for egress rules. Can be specified multiple times for each egress rule. Each egress block supports fields documented below. This argument is processed in attribute-as-blocks mode.
        Returns:
        builder
      • egress

        public SecurityGroupState.Builder egress​(java.util.List<SecurityGroupEgressArgs> egress)
        Parameters:
        egress - Configuration block for egress rules. Can be specified multiple times for each egress rule. Each egress block supports fields documented below. This argument is processed in attribute-as-blocks mode.
        Returns:
        builder
      • egress

        public SecurityGroupState.Builder egress​(SecurityGroupEgressArgs... egress)
        Parameters:
        egress - Configuration block for egress rules. Can be specified multiple times for each egress rule. Each egress block supports fields documented below. This argument is processed in attribute-as-blocks mode.
        Returns:
        builder
      • ingress

        public SecurityGroupState.Builder ingress​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<SecurityGroupIngressArgs>> ingress)
        Parameters:
        ingress - Configuration block for ingress rules. Can be specified multiple times for each ingress rule. Each ingress block supports fields documented below. This argument is processed in attribute-as-blocks mode.
        Returns:
        builder
      • ingress

        public SecurityGroupState.Builder ingress​(java.util.List<SecurityGroupIngressArgs> ingress)
        Parameters:
        ingress - Configuration block for ingress rules. Can be specified multiple times for each ingress rule. Each ingress block supports fields documented below. This argument is processed in attribute-as-blocks mode.
        Returns:
        builder
      • ingress

        public SecurityGroupState.Builder ingress​(SecurityGroupIngressArgs... ingress)
        Parameters:
        ingress - Configuration block for ingress rules. Can be specified multiple times for each ingress rule. Each ingress block supports fields documented below. This argument is processed in attribute-as-blocks mode.
        Returns:
        builder
      • name

        public SecurityGroupState.Builder name​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the security group. If omitted, the provider will assign a random, unique name.
        Returns:
        builder
      • name

        public SecurityGroupState.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the security group. If omitted, the provider will assign a random, unique name.
        Returns:
        builder
      • namePrefix

        public SecurityGroupState.Builder namePrefix​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • namePrefix

        public SecurityGroupState.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • ownerId

        public SecurityGroupState.Builder ownerId​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> ownerId)
        Parameters:
        ownerId - Owner ID.
        Returns:
        builder
      • ownerId

        public SecurityGroupState.Builder ownerId​(java.lang.String ownerId)
        Parameters:
        ownerId - Owner ID.
        Returns:
        builder
      • revokeRulesOnDelete

        public SecurityGroupState.Builder revokeRulesOnDelete​(@Nullable
                                                              com.pulumi.core.Output<java.lang.Boolean> revokeRulesOnDelete)
        Parameters:
        revokeRulesOnDelete - Instruct the provider to revoke all of the Security Groups attached ingress and egress rules before deleting the rule itself. This is normally not needed, however certain AWS services such as Elastic Map Reduce may automatically add required rules to security groups used with the service, and those rules may contain a cyclic dependency that prevent the security groups from being destroyed without removing the dependency first. Default `false`.
        Returns:
        builder
      • revokeRulesOnDelete

        public SecurityGroupState.Builder revokeRulesOnDelete​(java.lang.Boolean revokeRulesOnDelete)
        Parameters:
        revokeRulesOnDelete - Instruct the provider to revoke all of the Security Groups attached ingress and egress rules before deleting the rule itself. This is normally not needed, however certain AWS services such as Elastic Map Reduce may automatically add required rules to security groups used with the service, and those rules may contain a cyclic dependency that prevent the security groups from being destroyed without removing the dependency first. Default `false`.
        Returns:
        builder
      • tags

        public SecurityGroupState.Builder tags​(@Nullable
                                               com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public SecurityGroupState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public SecurityGroupState.Builder tagsAll​(@Nullable
                                                  com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public SecurityGroupState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • vpcId

        public SecurityGroupState.Builder vpcId​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> vpcId)
        Parameters:
        vpcId - VPC ID. Defaults to the region's default VPC.
        Returns:
        builder
      • vpcId

        public SecurityGroupState.Builder vpcId​(java.lang.String vpcId)
        Parameters:
        vpcId - VPC ID. Defaults to the region's default VPC.
        Returns:
        builder