lib/aws-sdk-elasticloadbalancingv2/client.rb in aws-sdk-elasticloadbalancingv2-1.94.0 vs lib/aws-sdk-elasticloadbalancingv2/client.rb in aws-sdk-elasticloadbalancingv2-1.95.0

- old
+ new

@@ -441,12 +441,12 @@ req.send_request(options) end # Adds the specified tags to the specified Elastic Load Balancing # resource. You can tag your Application Load Balancers, Network Load - # Balancers, Gateway Load Balancers, target groups, listeners, and - # rules. + # Balancers, Gateway Load Balancers, target groups, trust stores, + # listeners, and rules. # # Each tag consists of a key and an optional value. If a resource # already has a tag with the same key, `AddTags` updates its value. # # @option params [required, Array<String>] :resource_arns @@ -497,10 +497,53 @@ def add_tags(params = {}, options = {}) req = build_request(:add_tags, params) req.send_request(options) end + # Adds the specified revocation file to the specified trust store. + # + # @option params [required, String] :trust_store_arn + # The Amazon Resource Name (ARN) of the trust store. + # + # @option params [Array<Types::RevocationContent>] :revocation_contents + # The revocation file to add. + # + # @return [Types::AddTrustStoreRevocationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::AddTrustStoreRevocationsOutput#trust_store_revocations #trust_store_revocations} => Array&lt;Types::TrustStoreRevocation&gt; + # + # @example Request syntax with placeholder values + # + # resp = client.add_trust_store_revocations({ + # trust_store_arn: "TrustStoreArn", # required + # revocation_contents: [ + # { + # s3_bucket: "S3Bucket", + # s3_key: "S3Key", + # s3_object_version: "S3ObjectVersion", + # revocation_type: "CRL", # accepts CRL + # }, + # ], + # }) + # + # @example Response structure + # + # resp.trust_store_revocations #=> Array + # resp.trust_store_revocations[0].trust_store_arn #=> String + # resp.trust_store_revocations[0].revocation_id #=> Integer + # resp.trust_store_revocations[0].revocation_type #=> String, one of "CRL" + # resp.trust_store_revocations[0].number_of_revoked_entries #=> Integer + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTrustStoreRevocations AWS API Documentation + # + # @overload add_trust_store_revocations(params = {}) + # @param [Hash] params ({}) + def add_trust_store_revocations(params = {}, options = {}) + req = build_request(:add_trust_store_revocations, params) + req.send_request(options) + end + # Creates a listener for the specified Application Load Balancer, # Network Load Balancer, or Gateway Load Balancer. # # For more information, see the following: # @@ -579,10 +622,13 @@ # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#alpn-policies # # @option params [Array<Types::Tag>] :tags # The tags to assign to the listener. # + # @option params [Types::MutualAuthenticationAttributes] :mutual_authentication + # The mutual authentication configuration information. + # # @return [Types::CreateListenerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateListenerOutput#listeners #listeners} => Array&lt;Types::Listener&gt; # # @@ -748,10 +794,15 @@ # { # key: "TagKey", # required # value: "TagValue", # }, # ], + # mutual_authentication: { + # mode: "Mode", + # trust_store_arn: "TrustStoreArn", + # ignore_client_certificate_expiry: false, + # }, # }) # # @example Response structure # # resp.listeners #=> Array @@ -803,10 +854,13 @@ # resp.listeners[0].default_actions[0].forward_config.target_groups[0].weight #=> Integer # resp.listeners[0].default_actions[0].forward_config.target_group_stickiness_config.enabled #=> Boolean # resp.listeners[0].default_actions[0].forward_config.target_group_stickiness_config.duration_seconds #=> Integer # resp.listeners[0].alpn_policy #=> Array # resp.listeners[0].alpn_policy[0] #=> String + # resp.listeners[0].mutual_authentication.mode #=> String + # resp.listeners[0].mutual_authentication.trust_store_arn #=> String + # resp.listeners[0].mutual_authentication.ignore_client_certificate_expiry #=> Boolean # # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener AWS API Documentation # # @overload create_listener(params = {}) # @param [Hash] params ({}) @@ -1595,10 +1649,68 @@ def create_target_group(params = {}, options = {}) req = build_request(:create_target_group, params) req.send_request(options) end + # Creates a trust store. + # + # @option params [required, String] :name + # The name of the trust store. + # + # This name must be unique per region and cannot be changed after + # creation. + # + # @option params [required, String] :ca_certificates_bundle_s3_bucket + # The Amazon S3 bucket for the ca certificates bundle. + # + # @option params [required, String] :ca_certificates_bundle_s3_key + # The Amazon S3 path for the ca certificates bundle. + # + # @option params [String] :ca_certificates_bundle_s3_object_version + # The Amazon S3 object version for the ca certificates bundle. If + # undefined the current version is used. + # + # @option params [Array<Types::Tag>] :tags + # The tags to assign to the trust store. + # + # @return [Types::CreateTrustStoreOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::CreateTrustStoreOutput#trust_stores #trust_stores} => Array&lt;Types::TrustStore&gt; + # + # @example Request syntax with placeholder values + # + # resp = client.create_trust_store({ + # name: "TrustStoreName", # required + # ca_certificates_bundle_s3_bucket: "S3Bucket", # required + # ca_certificates_bundle_s3_key: "S3Key", # required + # ca_certificates_bundle_s3_object_version: "S3ObjectVersion", + # tags: [ + # { + # key: "TagKey", # required + # value: "TagValue", + # }, + # ], + # }) + # + # @example Response structure + # + # resp.trust_stores #=> Array + # resp.trust_stores[0].name #=> String + # resp.trust_stores[0].trust_store_arn #=> String + # resp.trust_stores[0].status #=> String, one of "ACTIVE", "CREATING" + # resp.trust_stores[0].number_of_ca_certificates #=> Integer + # resp.trust_stores[0].total_revoked_entries #=> Integer + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTrustStore AWS API Documentation + # + # @overload create_trust_store(params = {}) + # @param [Hash] params ({}) + def create_trust_store(params = {}, options = {}) + req = build_request(:create_trust_store, params) + req.send_request(options) + end + # Deletes the specified listener. # # Alternatively, your listener is deleted when you delete the load # balancer to which it is attached. # @@ -1741,10 +1853,32 @@ def delete_target_group(params = {}, options = {}) req = build_request(:delete_target_group, params) req.send_request(options) end + # Deletes a trust store. + # + # @option params [required, String] :trust_store_arn + # The Amazon Resource Name (ARN) of the trust store. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.delete_trust_store({ + # trust_store_arn: "TrustStoreArn", # required + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTrustStore AWS API Documentation + # + # @overload delete_trust_store(params = {}) + # @param [Hash] params ({}) + def delete_trust_store(params = {}, options = {}) + req = build_request(:delete_trust_store, params) + req.send_request(options) + end + # Deregisters the specified targets from the specified target group. # After the targets are deregistered, they no longer receive traffic # from the load balancer. # # The load balancer stops sending requests to targets that are @@ -2040,10 +2174,13 @@ # resp.listeners[0].default_actions[0].forward_config.target_groups[0].weight #=> Integer # resp.listeners[0].default_actions[0].forward_config.target_group_stickiness_config.enabled #=> Boolean # resp.listeners[0].default_actions[0].forward_config.target_group_stickiness_config.duration_seconds #=> Integer # resp.listeners[0].alpn_policy #=> Array # resp.listeners[0].alpn_policy[0] #=> String + # resp.listeners[0].mutual_authentication.mode #=> String + # resp.listeners[0].mutual_authentication.trust_store_arn #=> String + # resp.listeners[0].mutual_authentication.ignore_client_certificate_expiry #=> Boolean # resp.next_marker #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners AWS API Documentation # # @overload describe_listeners(params = {}) @@ -2818,10 +2955,13 @@ # The Amazon Resource Name (ARN) of the target group. # # @option params [Array<Types::TargetDescription>] :targets # The targets. # + # @option params [Array<String>] :include + # Used to inclue anomaly detection information. + # # @return [Types::DescribeTargetHealthOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::DescribeTargetHealthOutput#target_health_descriptions #target_health_descriptions} => Array&lt;Types::TargetHealthDescription&gt; # # @@ -2900,10 +3040,11 @@ # id: "TargetId", # required # port: 1, # availability_zone: "ZoneName", # }, # ], + # include: ["AnomalyDetection"], # accepts AnomalyDetection, All # }) # # @example Response structure # # resp.target_health_descriptions #=> Array @@ -2912,10 +3053,12 @@ # resp.target_health_descriptions[0].target.availability_zone #=> String # resp.target_health_descriptions[0].health_check_port #=> String # resp.target_health_descriptions[0].target_health.state #=> String, one of "initial", "healthy", "unhealthy", "unused", "draining", "unavailable" # resp.target_health_descriptions[0].target_health.reason #=> String, one of "Elb.RegistrationInProgress", "Elb.InitialHealthChecking", "Target.ResponseCodeMismatch", "Target.Timeout", "Target.FailedHealthChecks", "Target.NotRegistered", "Target.NotInUse", "Target.DeregistrationInProgress", "Target.InvalidState", "Target.IpUnusable", "Target.HealthCheckDisabled", "Elb.InternalError" # resp.target_health_descriptions[0].target_health.description #=> String + # resp.target_health_descriptions[0].anomaly_detection.result #=> String, one of "anomalous", "normal" + # resp.target_health_descriptions[0].anomaly_detection.mitigation_in_effect #=> String, one of "yes", "no" # # # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage): # # * target_deregistered @@ -2928,10 +3071,219 @@ def describe_target_health(params = {}, options = {}) req = build_request(:describe_target_health, params) req.send_request(options) end + # Describes all resources associated with the specified trust store. + # + # @option params [required, String] :trust_store_arn + # The Amazon Resource Name (ARN) of the trust store. + # + # @option params [String] :marker + # The marker for the next set of results. (You received this marker from + # a previous call.) + # + # @option params [Integer] :page_size + # The maximum number of results to return with this call. + # + # @return [Types::DescribeTrustStoreAssociationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::DescribeTrustStoreAssociationsOutput#trust_store_associations #trust_store_associations} => Array&lt;Types::TrustStoreAssociation&gt; + # * {Types::DescribeTrustStoreAssociationsOutput#next_marker #next_marker} => String + # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # + # @example Request syntax with placeholder values + # + # resp = client.describe_trust_store_associations({ + # trust_store_arn: "TrustStoreArn", # required + # marker: "Marker", + # page_size: 1, + # }) + # + # @example Response structure + # + # resp.trust_store_associations #=> Array + # resp.trust_store_associations[0].resource_arn #=> String + # resp.next_marker #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTrustStoreAssociations AWS API Documentation + # + # @overload describe_trust_store_associations(params = {}) + # @param [Hash] params ({}) + def describe_trust_store_associations(params = {}, options = {}) + req = build_request(:describe_trust_store_associations, params) + req.send_request(options) + end + + # Describes the revocation files in use by the specified trust store + # arn, or revocation ID. + # + # @option params [required, String] :trust_store_arn + # The Amazon Resource Name (ARN) of the trust store. + # + # @option params [Array<Integer>] :revocation_ids + # The revocation IDs of the revocation files you want to describe. + # + # @option params [String] :marker + # The marker for the next set of results. (You received this marker from + # a previous call.) + # + # @option params [Integer] :page_size + # The maximum number of results to return with this call. + # + # @return [Types::DescribeTrustStoreRevocationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::DescribeTrustStoreRevocationsOutput#trust_store_revocations #trust_store_revocations} => Array&lt;Types::DescribeTrustStoreRevocation&gt; + # * {Types::DescribeTrustStoreRevocationsOutput#next_marker #next_marker} => String + # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # + # @example Request syntax with placeholder values + # + # resp = client.describe_trust_store_revocations({ + # trust_store_arn: "TrustStoreArn", # required + # revocation_ids: [1], + # marker: "Marker", + # page_size: 1, + # }) + # + # @example Response structure + # + # resp.trust_store_revocations #=> Array + # resp.trust_store_revocations[0].trust_store_arn #=> String + # resp.trust_store_revocations[0].revocation_id #=> Integer + # resp.trust_store_revocations[0].revocation_type #=> String, one of "CRL" + # resp.trust_store_revocations[0].number_of_revoked_entries #=> Integer + # resp.next_marker #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTrustStoreRevocations AWS API Documentation + # + # @overload describe_trust_store_revocations(params = {}) + # @param [Hash] params ({}) + def describe_trust_store_revocations(params = {}, options = {}) + req = build_request(:describe_trust_store_revocations, params) + req.send_request(options) + end + + # Describes all trust stores for a given account by trust store arn’s or + # name. + # + # @option params [Array<String>] :trust_store_arns + # The Amazon Resource Name (ARN) of the trust store. + # + # @option params [Array<String>] :names + # The names of the trust stores. + # + # @option params [String] :marker + # The marker for the next set of results. (You received this marker from + # a previous call.) + # + # @option params [Integer] :page_size + # The maximum number of results to return with this call. + # + # @return [Types::DescribeTrustStoresOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::DescribeTrustStoresOutput#trust_stores #trust_stores} => Array&lt;Types::TrustStore&gt; + # * {Types::DescribeTrustStoresOutput#next_marker #next_marker} => String + # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # + # @example Request syntax with placeholder values + # + # resp = client.describe_trust_stores({ + # trust_store_arns: ["TrustStoreArn"], + # names: ["TrustStoreName"], + # marker: "Marker", + # page_size: 1, + # }) + # + # @example Response structure + # + # resp.trust_stores #=> Array + # resp.trust_stores[0].name #=> String + # resp.trust_stores[0].trust_store_arn #=> String + # resp.trust_stores[0].status #=> String, one of "ACTIVE", "CREATING" + # resp.trust_stores[0].number_of_ca_certificates #=> Integer + # resp.trust_stores[0].total_revoked_entries #=> Integer + # resp.next_marker #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTrustStores AWS API Documentation + # + # @overload describe_trust_stores(params = {}) + # @param [Hash] params ({}) + def describe_trust_stores(params = {}, options = {}) + req = build_request(:describe_trust_stores, params) + req.send_request(options) + end + + # Retrieves the ca certificate bundle. + # + # This action returns a pre-signed S3 URI which is active for ten + # minutes. + # + # @option params [required, String] :trust_store_arn + # The Amazon Resource Name (ARN) of the trust store. + # + # @return [Types::GetTrustStoreCaCertificatesBundleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetTrustStoreCaCertificatesBundleOutput#location #location} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_trust_store_ca_certificates_bundle({ + # trust_store_arn: "TrustStoreArn", # required + # }) + # + # @example Response structure + # + # resp.location #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/GetTrustStoreCaCertificatesBundle AWS API Documentation + # + # @overload get_trust_store_ca_certificates_bundle(params = {}) + # @param [Hash] params ({}) + def get_trust_store_ca_certificates_bundle(params = {}, options = {}) + req = build_request(:get_trust_store_ca_certificates_bundle, params) + req.send_request(options) + end + + # Retrieves the specified revocation file. + # + # This action returns a pre-signed S3 URI which is active for ten + # minutes. + # + # @option params [required, String] :trust_store_arn + # The Amazon Resource Name (ARN) of the trust store. + # + # @option params [required, Integer] :revocation_id + # The revocation ID of the revocation file. + # + # @return [Types::GetTrustStoreRevocationContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetTrustStoreRevocationContentOutput#location #location} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_trust_store_revocation_content({ + # trust_store_arn: "TrustStoreArn", # required + # revocation_id: 1, # required + # }) + # + # @example Response structure + # + # resp.location #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/GetTrustStoreRevocationContent AWS API Documentation + # + # @overload get_trust_store_revocation_content(params = {}) + # @param [Hash] params ({}) + def get_trust_store_revocation_content(params = {}, options = {}) + req = build_request(:get_trust_store_revocation_content, params) + req.send_request(options) + end + # Replaces the specified properties of the specified listener. Any # properties that you do not specify remain unchanged. # # Changing the protocol from HTTPS to HTTP, or from TLS to TCP, removes # the security policy and default certificate properties. If you change @@ -2999,10 +3351,13 @@ # # # # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#alpn-policies # + # @option params [Types::MutualAuthenticationAttributes] :mutual_authentication + # The mutual authentication configuration information. + # # @return [Types::ModifyListenerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ModifyListenerOutput#listeners #listeners} => Array&lt;Types::Listener&gt; # # @@ -3147,10 +3502,15 @@ # }, # }, # }, # ], # alpn_policy: ["AlpnPolicyValue"], + # mutual_authentication: { + # mode: "Mode", + # trust_store_arn: "TrustStoreArn", + # ignore_client_certificate_expiry: false, + # }, # }) # # @example Response structure # # resp.listeners #=> Array @@ -3202,10 +3562,13 @@ # resp.listeners[0].default_actions[0].forward_config.target_groups[0].weight #=> Integer # resp.listeners[0].default_actions[0].forward_config.target_group_stickiness_config.enabled #=> Boolean # resp.listeners[0].default_actions[0].forward_config.target_group_stickiness_config.duration_seconds #=> Integer # resp.listeners[0].alpn_policy #=> Array # resp.listeners[0].alpn_policy[0] #=> String + # resp.listeners[0].mutual_authentication.mode #=> String + # resp.listeners[0].mutual_authentication.trust_store_arn #=> String + # resp.listeners[0].mutual_authentication.ignore_client_certificate_expiry #=> Boolean # # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener AWS API Documentation # # @overload modify_listener(params = {}) # @param [Hash] params ({}) @@ -3843,10 +4206,56 @@ def modify_target_group_attributes(params = {}, options = {}) req = build_request(:modify_target_group_attributes, params) req.send_request(options) end + # Update the ca certificate bundle for a given trust store. + # + # @option params [required, String] :trust_store_arn + # The Amazon Resource Name (ARN) of the trust store. + # + # @option params [required, String] :ca_certificates_bundle_s3_bucket + # The Amazon S3 bucket for the ca certificates bundle. + # + # @option params [required, String] :ca_certificates_bundle_s3_key + # The Amazon S3 path for the ca certificates bundle. + # + # @option params [String] :ca_certificates_bundle_s3_object_version + # The Amazon S3 object version for the ca certificates bundle. If + # undefined the current version is used. + # + # @return [Types::ModifyTrustStoreOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ModifyTrustStoreOutput#trust_stores #trust_stores} => Array&lt;Types::TrustStore&gt; + # + # @example Request syntax with placeholder values + # + # resp = client.modify_trust_store({ + # trust_store_arn: "TrustStoreArn", # required + # ca_certificates_bundle_s3_bucket: "S3Bucket", # required + # ca_certificates_bundle_s3_key: "S3Key", # required + # ca_certificates_bundle_s3_object_version: "S3ObjectVersion", + # }) + # + # @example Response structure + # + # resp.trust_stores #=> Array + # resp.trust_stores[0].name #=> String + # resp.trust_stores[0].trust_store_arn #=> String + # resp.trust_stores[0].status #=> String, one of "ACTIVE", "CREATING" + # resp.trust_stores[0].number_of_ca_certificates #=> Integer + # resp.trust_stores[0].total_revoked_entries #=> Integer + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTrustStore AWS API Documentation + # + # @overload modify_trust_store(params = {}) + # @param [Hash] params ({}) + def modify_trust_store(params = {}, options = {}) + req = build_request(:modify_trust_store, params) + req.send_request(options) + end + # Registers the specified targets with the specified target group. # # If the target is an EC2 instance, it must be in the `running` state # when you register it. # @@ -4003,10 +4412,36 @@ def remove_tags(params = {}, options = {}) req = build_request(:remove_tags, params) req.send_request(options) end + # Removes the specified revocation file from the specified trust store. + # + # @option params [required, String] :trust_store_arn + # The Amazon Resource Name (ARN) of the trust store. + # + # @option params [required, Array<Integer>] :revocation_ids + # The revocation IDs of the revocation files you want to remove. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.remove_trust_store_revocations({ + # trust_store_arn: "TrustStoreArn", # required + # revocation_ids: [1], # required + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTrustStoreRevocations AWS API Documentation + # + # @overload remove_trust_store_revocations(params = {}) + # @param [Hash] params ({}) + def remove_trust_store_revocations(params = {}, options = {}) + req = build_request(:remove_trust_store_revocations, params) + req.send_request(options) + end + # Sets the type of IP addresses used by the subnets of the specified # load balancer. # # @option params [required, String] :load_balancer_arn # The Amazon Resource Name (ARN) of the load balancer. @@ -4394,10 +4829,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-elasticloadbalancingv2' - context[:gem_version] = '1.94.0' + context[:gem_version] = '1.95.0' Seahorse::Client::Request.new(handlers, context) end # Polls an API operation until a resource enters a desired state. #